@Test
public void testFromConfigFileMimicNullFile() throws Exception {

    // mimics when property System.getProperty("org.aspectj.weaver.loadtime.configuration") returns null.
    AutomonPropertiesLoader loader = new AutomonPropertiesLoader((String) null, "automon.xml");
    Properties properties = loader.getProperties();
    assertThat(properties.getProperty(AutomonPropertiesLoader.CONFIGURED_OPEN_MON)).isEqualTo("org.mypackage.MyOpenMon");
}