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());
  }
 public void testGetPrimaryLocation() throws Exception {
   loadDataSetXml("admin/commserver/seedLocations.xml");
   Location location = m_out.getPrimaryLocation();
   assertNotNull(location);
   assertEquals(101, (int) location.getId());
 }