### Question:
PebbleConfigurationProducer { public Properties loadFromFile(String fileName) { Properties props = new Properties(); try (InputStream config = Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName)) { if (Objects.nonNull(config)) { props.load(config); } } catch (IOException e) { } return props; }  @Produces Properties pebbleConfiguration(); Properties loadFromFile(String fileName);  }### Answer:
@Test public void shouldLoadPebbleConfigurationPropertiesFromFile() { Properties pebbleConfiguration = pebbleConfigurationProducer.loadFromFile("pebble.properties"); assertNotNull(pebbleConfiguration); assertEquals(pebbleConfiguration.getProperty("org.eclipse.krazo.ext.pebble.autoEscaping"), "true"); }
@Test public void shouldReturnEmptyPropertiesForNonExistingPropertiesFile() { Properties pebbleConfiguration = pebbleConfigurationProducer.loadFromFile("unexisting.properties"); assertNotNull(pebbleConfiguration); assertTrue(pebbleConfiguration.isEmpty()); }
@Test public void shouldLoadPebbleConfigurationPropertiesFromFile() { Properties pebbleConfiguration = pebbleConfigurationProducer.loadFromFile("pebble.properties"); assertNotNull(pebbleConfiguration); assertEquals(pebbleConfiguration.getProperty("org.mvcspec.ozark.ext.pebble.autoEscaping"), "true"); }