### Question:
DefaultResultToSolrMapper implements ResultToSolrMapper { @Override public Get getGet(byte[] row) { Get get = new Get(row); for (Entry<byte[], NavigableSet<byte[]>> familyMapEntry : familyMap.entrySet()) { byte[] columnFamily = familyMapEntry.getKey(); if (familyMapEntry.getValue() == null) { get.addFamily(columnFamily); } else { for (byte[] qualifier : familyMapEntry.getValue()) { get.addColumn(columnFamily, qualifier); } } } return get; } DefaultResultToSolrMapper(String indexerName, List<FieldDefinition> fieldDefinitions,
            List<DocumentExtractDefinition> documentExtractDefinitions); @Override boolean containsRequiredData(Result result); @Override boolean isRelevantKV(KeyValue kv); @Override Get getGet(byte[] row); @Override void map(Result result, SolrUpdateWriter solrUpdateWriter);  }### Answer:
@Test public void testGetGet_SingleCellFieldDefinition() { FieldDefinition fieldDef = new FieldDefinition("fieldname", "cf:qualifier", ValueSource.VALUE, "int"); DefaultResultToSolrMapper resultMapper = new DefaultResultToSolrMapper("index-name", Lists.newArrayList(fieldDef), Collections.<DocumentExtractDefinition>emptyList()); Get get = resultMapper.getGet(ROW); assertArrayEquals(ROW, get.getRow()); assertEquals(1, get.getFamilyMap().size()); assertTrue(get.getFamilyMap().containsKey(Bytes.toBytes("cf"))); NavigableSet<byte[]> qualifiers = get.getFamilyMap().get(Bytes.toBytes("cf")); assertEquals(1, qualifiers.size()); assertTrue(qualifiers.contains(Bytes.toBytes("qualifier"))); }
@Test public void testGetGet_WildcardFieldDefinition() { FieldDefinition fieldDef = new FieldDefinition("fieldname", "cf:qual*", ValueSource.VALUE, "int"); DefaultResultToSolrMapper resultMapper = new DefaultResultToSolrMapper("index-name", Lists.newArrayList(fieldDef), Collections.<DocumentExtractDefinition>emptyList()); Get get = resultMapper.getGet(ROW); assertArrayEquals(ROW, get.getRow()); assertEquals(1, get.getFamilyMap().size()); assertTrue(get.getFamilyMap().containsKey(Bytes.toBytes("cf"))); NavigableSet<byte[]> qualifiers = get.getFamilyMap().get(Bytes.toBytes("cf")); assertNull(qualifiers); }