@Test
public void testFactoryReturn() throws IOException {
File dir = Files.createTempDir();
try {
MiniAccumuloConfig cfg = new MiniAccumuloConfig(dir, "foo");
Assert.assertEquals(MiniAccumuloCluster.class, AccumuloClusters.createMiniCluster(cfg).getClass());
Assert.assertTrue(FileUtils.deleteQuietly(dir));
Assert.assertTrue(dir.mkdirs());
MiniAccumuloConfigImpl cfgImpl = new MiniAccumuloConfigImpl(dir, "foo");
Assert.assertEquals(MiniAccumuloClusterImpl.class, AccumuloClusters.create(cfgImpl).getClass());