@Test
public void testMatchKeyWithValue() {

    final QueryToKeyMatcher matcher = new QueryToKeyMatcher(
            Query.and(
                    queryField("f1").equalsValue(7),
                    queryField("f2").equalsValue(11)));
    Match match = matcher.matchesSatisfyingQuery(keyWithValue(concatenateFields("f1", "f2", "f3", "f4"), 2));
    assertEquals(MatchType.EQUALITY, match.getType());
    assertEquals(Key.Evaluated.concatenate(7, 11), match.getEquality());
}