@Test
public void testIterate() throws Exception {

    bridge.write("key3", marshaller.marshal("val3"));
    bridge.write("key1", marshaller.marshal("val1"));
    bridge.write("key2", marshaller.marshal("val2"));
    bridge.write("xey4", marshaller.marshal("val4"));
    List<String> keys = new ArrayList<>();
    List<String> values = new ArrayList<>();
    bridge.iterate("key", (key, value) -> {
        assertThat(value, is(instanceOf(String.class)));
        keys.add(key);
        values.add((String)value);
    });
    assertEquals(asList("key1", "key2", "key3"), keys);
    assertEquals(asList("val1", "val2", "val3"), values);
}