@Test
public void testDryRun() throws IOException {

    writeHBaseRecord("row1", ImmutableMap.of(
            "firstname", "John",
            "lastname", "Doe"));
    
    writeHBaseRecord("row2", ImmutableMap.of(
            "firstname", "Jane",
            "lastname", "Doe"));
    
    opts.evaluate();
    
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    
    IndexerDryRun dryRunner = new IndexerDryRun(opts, HBASE_TEST_UTILITY.getConfiguration(), outputStream);
    int exitCode = dryRunner.run();
    
    String output = new String(outputStream.toByteArray());
    
    assertEquals(3, Iterables.size(Splitter.on('\n').split(output)));
    
    assertEquals(0, exitCode);
    
    
    
}