### Question:
InstructionsProperties { public Optional<Object> getProperty(final String name) { return Optional.ofNullable(propertyMap.get(name)); } InstructionsProperties(final Map<String, Object> propertyMap, final Configuration jsonPathConfig);  InstructionsProperties(final Map<String, Object> propertyMap); Optional<Object> getProperty(final String name); boolean matches(final String jsonPath);  }### Answer:
@Test public void testGetProperty() { final Map<String, Object> props = new HashMap<>(); props.put("p1", 1); props.put("p2", "2"); props.put("p3", Arrays.asList("3", 33)); final InstructionsProperties instructionsProperties = new InstructionsProperties(props); assertEquals(Optional.of(1), instructionsProperties.getProperty("p1")); assertEquals(Optional.of("2"), instructionsProperties.getProperty("p2")); assertEquals(Optional.of(Arrays.asList("3", 33)), instructionsProperties.getProperty("p3")); assertFalse(instructionsProperties.getProperty("p4").isPresent()); }