public void testFindById() throws Exception { loadDataSetXml("admin/commserver/seedLocationsAndServices.xml"); Location[] locations = m_out.getLocations(); Location firstLocation = locations[0]; int locationId = firstLocation.getId(); Location locationById = m_out.getLocation(locationId); assertNotNull(locationById); assertEquals(firstLocation.getName(), locationById.getName()); Collection<LocationSpecificService> services = locationById.getServices(); assertNotNull(services); assertEquals(3, services.size()); }