### Question:
SingleCellExtractor implements ByteArrayExtractor { @Override public boolean containsTarget(Result result) { return result.containsColumn(columnFamily, columnQualifier); } SingleCellExtractor(byte[] columnFamily, byte[] columnQualifier); @Override Collection<byte[]> extract(Result result); @Override byte[] getColumnFamily(); @Override byte[] getColumnQualifier(); @Override boolean isApplicable(KeyValue keyValue); @Override boolean containsTarget(Result result);  }### Answer:
@Test public void testContainsTarget_True() { Result result = Result.create(Lists.<Cell>newArrayList(new KeyValue(ROW, COLUMN_FAMILY, COLUMN_QUALIFIER, Bytes.toBytes("value")))); assertTrue(extractor.containsTarget(result)); }
@Test public void testContainsTarget_False() { Result result = Result.create(Lists.<Cell>newArrayList(new KeyValue(ROW, COLUMN_FAMILY, Bytes.toBytes("wrong qualifier"), Bytes.toBytes("value")))); assertFalse(extractor.containsTarget(result)); }