private Matcher<Key> grouping(final String... properties) {
return new BaseMatcher<Key>() {
@Override
public boolean matches(Object object) {
if (object instanceof Key) {
Key elem = (Key) object;
if (Arrays.equals(elem.group(), properties) == false) {
return false;
}
}
return true;
}