@Test public void updateCityInfo() throws CityInfoNotFoundException { CityInfo cf = new CityInfo(); cf.setZipCode("8"); cf.setCity("Silvermoon City"); test.createCityInfo(cf); System.out.println(cf.getZipCode()); assertEquals(test.getCityByZipCode(cf.getZipCode()).getCity(), "Silvermoon City"); CityInfo cfUpd = test.getCityByZipCode(cf.getZipCode()); cfUpd.setCity("Ironforge"); test.updateCityInfo(cfUpd); System.out.println(cfUpd.getZipCode() + cf.getZipCode()); assertEquals(test.getCityByZipCode(cf.getZipCode()).getCity(), "Ironforge"); test.deleteCityInfo(cf); }