source: class TestMonitorConfigReader {
  
    @Test
    void testMonitorConfigDeserialization() {
  
target: 
      String mockConfig = getClass().getClassLoader().getResource("Environment-Mock.xml").toString();
  
      MonitorConfig config = new MonitorConfigReader().readMonitorConfig(mockConfig);
  
      Assert.assertNotNull(config);
  
      Assert.assertNotNull(config.getEnvironments());
  
      config.getEnvironments().forEach(Assert::assertNotNull);
  
      config.getEnvironments().forEach(environmentConfig -> Assert.assertNotNull(environmentConfig.getCheckResources())
  
      );
    }
  
  }