### Question:
PropertyListParameterDecoder extends ParameterDecoder<String> { public Object decodeValue(String value) throws ParameterDecodeException { Properties properties = new Properties(); try { properties.load(new ByteArrayInputStream(value.getBytes(StandardCharsets.UTF_8))); } catch (UnsupportedEncodingException e) { throw new ParameterDecodeException("Unexpected error. 'UTF-8' is not a supported character encoding.", e); } catch (IOException e) { throw new ParameterDecodeException("Unexpected error. Unable to read ByteArrayInputStream based stream.", e); } return properties; }  Object decodeValue(String value);  }### Answer:
@Test public void test_decodeValue() { SmooksResourceConfiguration config = new SmooksResourceConfiguration("x", "x"); MockApplicationContext mockApplicationContext = new MockApplicationContext(); PropertyListParameterDecoder propertyListParameterDecoder = new PropertyListParameterDecoder(); mockApplicationContext.getRegistry().lookup(new LifecycleManagerLookup()).applyPhase(propertyListParameterDecoder, new PostConstructLifecyclePhase(new Scope(mockApplicationContext.getRegistry(), config, propertyListParameterDecoder))); Properties properties = (Properties) propertyListParameterDecoder.decodeValue("x=111\ny=222"); assertEquals(2, properties.size()); assertEquals("111", properties.getProperty("x")); assertEquals("222", properties.getProperty("y")); }