@Test
public void testIsRelevantKV_WithWildcards() {

    FieldDefinition fieldDef = new FieldDefinition("fieldA", "cf:quali*", ValueSource.VALUE, "int");
    DefaultResultToSolrMapper resultMapper = new DefaultResultToSolrMapper("index-name", Lists.newArrayList(fieldDef),
            Collections.<DocumentExtractDefinition> emptyList());
    KeyValue relevantKV = new KeyValue(Bytes.toBytes("row"), Bytes.toBytes("cf"), Bytes.toBytes("qualifier"),
            Bytes.toBytes("value"));
    KeyValue notRelevantKV_WrongFamily = new KeyValue(Bytes.toBytes("row"), Bytes.toBytes("wrongcf"),
            Bytes.toBytes("qualifier"), Bytes.toBytes("value"));
    KeyValue notRelevantKV_WrongQualifier = new KeyValue(Bytes.toBytes("row"), Bytes.toBytes("cf"),
            Bytes.toBytes("qu wrong qualifier"), Bytes.toBytes("value"));
    assertTrue(resultMapper.isRelevantKV(relevantKV));
    assertFalse(resultMapper.isRelevantKV(notRelevantKV_WrongFamily));
    assertFalse(resultMapper.isRelevantKV(notRelevantKV_WrongQualifier));
}