@Test
public void testGetBatches() {

    LookoutConfig config = new LookoutConfig();
    AddressService addressService = new DefaultAddressService();
    Registry registry = new DefaultRegistry();
    HttpObserver observer = new HttpObserver(config, addressService, registry);
    List<LookoutMeasurement> measurements = new ArrayList<LookoutMeasurement>();
    measurements.add(new LookoutMeasurement(new Date(), registry.createId("a")));
    measurements.add(new LookoutMeasurement(new Date(), registry.createId("b")));
    List list = observer.getBatches(measurements, 1);
    Assert.assertEquals(2, list.size());
}