@Test
public void correctValuesSetForProperties() {
TableConfiguration tableConf = EasyMock.createMock(TableConfiguration.class);
CompactionPlan plan = EasyMock.createMock(CompactionPlan.class);
WriteParameters writeParams = EasyMock.createMock(WriteParameters.class);
plan.writeParameters = writeParams;
DatafileManager dfm = EasyMock.createMock(DatafileManager.class);
TabletTime time = EasyMock.createMock(TabletTime.class);
Tablet tablet = new Tablet(time, "", 0, new Path("/foo"), dfm);
long hdfsBlockSize = 10000l, blockSize = 5000l, indexBlockSize = 500l;
int replication = 5;
String compressType = "snappy";
EasyMock.expect(tableConf.iterator()).andReturn(Iterators.<Entry<String,String>> emptyIterator());
EasyMock.expect(writeParams.getHdfsBlockSize()).andReturn(hdfsBlockSize).times(2);
EasyMock.expect(writeParams.getBlockSize()).andReturn(blockSize).times(2);
EasyMock.expect(writeParams.getIndexBlockSize()).andReturn(indexBlockSize).times(2);
EasyMock.expect(writeParams.getCompressType()).andReturn(compressType).times(2);
EasyMock.expect(writeParams.getReplication()).andReturn(replication).times(2);
EasyMock.replay(tableConf, plan, writeParams);
AccumuloConfiguration aConf = tablet.createTableConfiguration(tableConf, plan);