@Test
public void testGetTime() {

	File authFile;
	Configuration config;
	DatabaseTimeLoader timeLoader;
	Date systemTime;
	Date databaseTime;
	long difference;
	
	authFile = dbUtils.getAuthorizationFile();
	config = new Configuration(authFile);
	timeLoader = new DatabaseTimeLoader(config.getDatabaseLoginCredentials());
	
	databaseTime = timeLoader.getDatabaseTime();
	systemTime = new Date();
	difference = databaseTime.getTime() - systemTime.getTime();
	
	Assert.assertTrue("Database time is different to system time, databaseTime=" + databaseTime + ", systemTime="
			+ systemTime + ".",
			difference > -1000 && difference < 1000);
}