@Test
public void testLookupMicroservice() throws Exception {

   Set<ServiceHandle> mockHandles = Util.createSetFrom(Util.createHandle(1), Util.createHandle(2));
   Set<Object> services = Util.createSetFrom(new Object(), new Object());

   new Expectations() {{
      sender.sendToClusterAsync(META_DATA, (Set<Address>) any, (FutureListener<RspList<MicroserviceSearchResponse>>) any);
      times = 1;
      result = mockHandles;
      store.getServices(META_DATA);
      result = services;
      times = 1;

   }};
   Set<Object> objects = clusterMicroserviceProvider.lookupMicroservice(META_DATA);
   assertThat(objects).isNotEmpty().isEqualTo(services);
}