PluginDocMapper { public PluginDoc toDto(QavPluginDoc qavPluginDoc) { PluginDoc result = new PluginDoc(); result.setName(qavPluginDoc.name()); result.setDescription(qavPluginDoc.description()); return result; }  PluginDoc toDto(QavPluginDoc qavPluginDoc);  }
@Test public void toDto() throws Exception { PluginDoc result = new PluginDocMapper().toDto(qavPluginDoc); PluginDoc expected = new PluginDoc(); expected.setName("plugin1"); expected.setDescription("plugin1.desc"); assertThat(result, notNullValue()); assertThat(result, is(expected)); }