### Question:
OutputMethodFactory { public Properties getOutputMethodProperties() { Properties props = new Properties(); props.setProperty(METHOD_PROPERTY_NAME, OUTPUT_TYPE_XML); return props; } OutputMethodFactory(XQueryRunConfig config); Properties getOutputMethodProperties(); static final String METHOD_PROPERTY_NAME; static final String OUTPUT_TYPE_XML; }### Answer:
@Test public void shouldAlwaysReturnOutputMethodXml() { OutputMethodFactory outputMethodFactory = new OutputMethodFactory(mock(XQueryRunConfig.class)); Properties result = outputMethodFactory.getOutputMethodProperties(); assertThat(result.keySet().size(), is(1)); assertThat(result.getProperty(METHOD_PROPERTY_NAME), is(OUTPUT_TYPE_XML)); }