### Question:
HBaseIndexingOptions { public boolean isDirectWrite() { return reducers == 0; } HBaseIndexingOptions(Configuration conf); boolean isDirectWrite(); List<Scan> getScans(); IndexingSpecification getIndexingSpecification(); void evaluate(); boolean isGeneratedOutputDir();  }### Answer:
@Test public void testIsDirectWrite_True() { opts.reducers = 0; assertTrue(opts.isDirectWrite()); }
@Test public void testIsDirectWrite_False() { opts.reducers = 1; assertFalse(opts.isDirectWrite()); opts.reducers = -1; assertFalse(opts.isDirectWrite()); opts.reducers = -2; assertFalse(opts.isDirectWrite()); }