@Test
public void testRegister() throws Exception {

    Registry registry = new DefaultRegistry();
    JvmSystemPropertiesInfoMetricImporter jvmSystemPropertiesInfoMetricImporter = new JvmSystemPropertiesInfoMetricImporter();
    jvmSystemPropertiesInfoMetricImporter.register(registry);
    Id idSys = registry.createId(LookoutIdNameConstants.JVM_SYSTEM_PROP_NAME);
    InfoWrapper infoWrapper = registry.get(idSys);
    assertEquals(System.getProperties(), infoWrapper.value());
    Id envId = registry.createId(LookoutIdNameConstants.JVM_SYSTEM_ENV_NAME);
    InfoWrapper envWrapper = registry.get(envId);
    assertEquals(System.getenv(), envWrapper.value());
}