OutputSettings { public static Builder builder() { return new Builder(); } private  OutputSettings(Builder builder); static Builder builder(); boolean outputContributingVariantsOnly(); int getNumberOfGenesToShow(); Set<OutputFormat> getOutputFormats(); String getOutputPrefix(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testCanBuildFromYaml() throws Exception { OutputSettings instance = OutputSettings.builder().build(); ObjectMapper mapper = new ObjectMapper(new YAMLFactory()); OutputSettings createdFromYaml = mapper.readValue( "outputContributingVariantsOnly: false\n" + "numGenes: 0\n" + "outputPrefix: \"\"\n" + "outputFormats: [HTML]", OutputSettings.class); assertThat(instance, equalTo(createdFromYaml)); }
@Test public void testCanOutputAsYaml() throws Exception { OutputSettings instance = OutputSettings.builder().build(); ObjectMapper mapper = new ObjectMapper(new YAMLFactory()); String output = mapper.writeValueAsString(instance); System.out.println(output); }