@Test
public void testDefinedConfigurationInitialized() {
final Configuration c = initCommon("/newpath/newtest", "json", 1500, " ", "HDFS", "version");
final FileSinkConfiguration conf = new FileSinkConfiguration(c);
Assert.assertEquals(conf.getSeparator(), ' ');
Assert.assertEquals(conf.getFileSizeMegaBytes(), 1500, 0);
Assert.assertEquals(conf.getFileType(), "json");
Assert.assertEquals(conf.getSourcePartitionPath().get(), "2018/08/01");
Assert.assertEquals(conf.getSourceType(), "hive");
Assert.assertEquals(conf.getSourceNamePrefix(), "test.db_test_trip.table");
Assert.assertEquals(conf.getPartitionType().name(), "DATE");
Assert.assertEquals(conf.getFileNamePrefix(), "marmaray_hive_test.db_test_trip.table_201808011025");
Assert.assertEquals(conf.getFullPath(), this.fileSystem.get().getWorkingDirectory() + "/newpath/newtest/2018/08/01/" + conf.getFileNamePrefix() );
Assert.assertEquals(conf.getPathHdfs(), this.fileSystem.get().getWorkingDirectory() + "/newpath/newtest/2018/08/01");
}