@Test
public void testSendToClusterSync() throws Exception {

   new Expectations(jgroupsMessageSender) {{
      jgroupsMessageSender.getMembersAddresses();
      result = Collections.emptyList();
   }};
   String id = UUID.randomUUID().toString();
   jgroupsMessageSender.sendToClusterSync(id);
   new Verifications() {{
      Message msg;
      RequestOptions options;
      List<Address> addresses;
      dispatcher.castMessage(addresses = withCapture(), msg = withCapture(), options = withCapture());
      assertThat(msg.getObject()).isEqualTo(id);
      assertThat(msg.getDest()).isNull();
      assertThat(options.getMode()).isEqualTo(ResponseMode.GET_ALL);
      assertThat(addresses).isEmpty();
   }};
}