@Test public void testDeleteCost() throws SQLException, IOException { costBean.setCostValue("12"); costBean.setText("FOOD"); costBean.addCost(); costBean.deleteCost(costBean.getCurrentCost()); assertEquals( "size should be equal", 0, costService.getCostsByTrip(costBean.getCurrentTrip()).size()); }