@@ -0,0 +1,1401 @@
+package cl.fatman.capital.fund;%0A%0Aimport static org.junit.Assert.*;%0Aimport org.junit.AfterClass;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Aimport java.time.LocalDate;%0Aimport java.util.List;%0Aimport java.util.ArrayList;%0A%0Apublic class PersistenceDataTest %7B%0A%09%0A%09private static PersistenceData connection;%0A%09%0A%09%0A%09@BeforeClass%0A%09public static void setUp() %7B%0A%09%09connection = PersistenceData.getInstance();%0A%09%09connection.connect();%0A%09%7D%0A%09%0A%09%0A%09@AfterClass%0A%09public static void tearDown() %7B%0A%09%09connection.close();%0A%09%7D%0A%09%0A%09%0A%09@Test%0A%09public void fomentUnitTest() %7B%0A%09%09LocalDate ufDate = LocalDate.now();%0A%09%09List%3CFomentUnit%3E ufList = new ArrayList%3CFomentUnit%3E();%0A%09%09ufList.add(new FomentUnit(0.003, ufDate));%0A%09%09connection.createFomentUnitList(ufList);%0A%09%09List%3CFomentUnit%3E tmpList = connection.selectAllFomentUnit();%0A%09%09assertEquals(%22UF lists should be equals.%22, ufList.size(), tmpList.size());%0A%09%7D%0A%09%0A%09%0A%09@Test%0A%09public void createFundEntryTest() %7B%0A%09%09List%3CFund%3E fundList = new ArrayList%3CFund%3E();%0A%09%09fundList.add(new Fund(%22Fake%22, %220-K%22, %22A%22, %22REM%22,  %22Accionario%22, %22Nacional%22, 1.0));%0A%09%09fundList.add(new Fund(%22Fake%22, %220-K%22, %22B%22, %22REM%22,  %22Accionario%22, %22Nacional%22, 2.0));%0A%09%09fundList.add(new Fund(%22Fake%22, %220-K%22, %22C%22, %22REM%22,  %22Accionario%22, %22Nacional%22, 3.0));%0A%09%09connection.createFundList(fundList);%0A%09%09List%3CFund%3E tmpList = connection.selectAllFund();%0A%09%09assertEquals(%22Fund lists should be equals%22, fundList.size(), tmpList.size());%0A%09%7D%0A%0A%7D

Add unit test for the persistence operations in the Fund and Foment Unit objects.