### Question:
RecursivePropertiesPersister implements PropertiesPersister { @Override public void storeToXml(Properties props, OutputStream os, String header) throws IOException { propertiesPersister.storeToXml(props, os, header); } RecursivePropertiesPersister(PropertiesPersister propertiesPersister); @Override void load(Properties props, InputStream is); @Override void load(Properties props, Reader reader); @Override void store(Properties props, OutputStream os, String header); @Override void store(Properties props, Writer writer, String header); @Override void loadFromXml(Properties props, InputStream is); @Override void storeToXml(Properties props, OutputStream os, String header); @Override void storeToXml(Properties props, OutputStream os, String header,
            String encoding);  }### Answer:
@Test public void testStoreToXmlPropertiesOutputStreamString() throws Exception { final Properties props = new Properties(); final OutputStream os = new NullOutputStream(); final String header = "Test"; testee.storeToXml(props, os, header); verify(propertiesPersister).storeToXml(props, os, header); }
@Test public void testStoreToXmlPropertiesOutputStreamStringString() throws Exception { final Properties props = new Properties(); final OutputStream os = new NullOutputStream(); final String header = "Test"; final String encoding = "UTF-8"; testee.storeToXml(props, os, header, encoding); verify(propertiesPersister).storeToXml(props, os, header, encoding); }