### Question:
MonitorConfigReader { MonitorConfig readMonitorConfig(String configUrl) { try { log.info("Loading configuration"); JAXBContext context; context = JAXBContext.newInstance(MonitorConfigImpl.class, EnvironmentConfigImpl.class); Unmarshaller um = context.createUnmarshaller(); MonitorConfig config = (MonitorConfig) um.unmarshal(new URL(configUrl)); log.info("Loading configuration - done."); return config; } catch (JAXBException | MalformedURLException e) { log.error("Error during configuration deserialization s" + e.getMessage()); throw new MonitorConfigDeserializationException(e); } }    }### Answer:
@Test void testMonitorConfigDeserialization() { 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()) ); }