@Test
public void match() throws Exception {

    // given
    repository.save(getMetadata("456789"));
    // when
    final boolean match = repository.exist("id = 456789");
    final boolean noMatch = repository.exist("id = 1234");
    // then
    assertTrue(match);
    assertFalse(noMatch);
}