@Test
public void testFromSystemProperties_StatsD() throws Exception {

    AutomonPropertiesLoader.SysProperty sysProperty = mock(AutomonPropertiesLoader.SysProperty.class);
    Properties props = new Properties();
    props.put("org.automon.statsd.noexist", "mynoexist_value");
    when(sysProperty.getProperties()).thenReturn(props);
    when(sysProperty.getProperty("org.automon.statsd.noexist")).thenReturn("mynoexist_value");
    AutomonPropertiesLoader loader = new AutomonPropertiesLoader(sysProperty, "automon.xml");
    Properties properties = loader.getProperties();
    assertThat(properties.getProperty("org.automon.statsd.noexist")).isEqualTo("mynoexist_value");
}