### Question:
PropertiesReader { public Properties getProperties(String resource) { Validate.notBlank(resource); Properties properties = new Properties(); try (InputStream input = this.getClass().getResourceAsStream(StringUtils.prependIfMissing(resource, "/"))) { properties.load(input); } catch (IOException e) { throw new IllegalStateException("Failed to load resource " + resource); } return properties; }  Properties getProperties(String resource);  }### Answer:
@Test void shouldGetProperties() { Properties properties = new PropertiesReader().getProperties(TEST_RESOURCE); assertThat(properties).containsOnly( new SimpleEntry<>("prop1", "value1"), new SimpleEntry<>("prop2", "value2") ); }