* if the test has an error.
*/
public void testGetPropertiesInvalidFile() throws Exception {
// invalid file
reader = new ConfigReader(log, "/importorder-test", null, false);
properties = reader.getProperties();
assertNotNull("Invalid properties should not be null", properties);
assertTrue("Invalid properties should be empty", properties.isEmpty());
try {
// invalid file
reader = new ConfigReader(log, "/importorder-test", null, true);
reader.getProperties();
fail("Should fail, failOnError flag is true");
} catch (Exception e) {
assertEquals("Error type should match", MojoExecutionException.class, e.getClass());
}