@Test
public void shouldReturnACollectionOfKeyValuePairsWhenGetIsCalled() {

    final List<KeyValue> serverAll = ImmutableList.of(
            new KeyValue("KEY1", "VALUE1"),
            new KeyValue("KEY2", "VALUE2"),
            new KeyValue("KEY3", "VALUE3")
    );
    when(distributedStore.getAll()).thenReturn(Futures.<Collection<KeyValue>>immediateFuture(serverAll));
    Collection<KeyValue> clientAll = client().resource(REQUEST_URI).get(new GenericType<Collection<KeyValue>>() { });
    assertThat(clientAll, containsInAnyOrder(serverAll.toArray()));
}