### Question:
YamlDocGenerator { String generateForClass(Map<String, Object> classSchema) { StringBuilder sb = new StringBuilder(CLASS_TABLE_HEADER); Map<String, Object> properties = Optional.ofNullable(subMap(classSchema, "properties")).orElse(new HashMap<>()); for (String propertyName : getSortedKeys(properties)) { sb.append("\n").append(generateForProperty(propertyName, properties)); } return sb.toString(); } YamlDocGenerator(Map<String, Object> schema); String generate(String schemaName); String generate(String reference, Map<String, Object> schema); void useKubernetesVersion(String k8sVersion); String getKubernetesSchemaMarkdown(); String getKubernetesSchemaMarkdownFile();  }### Answer:
@Test public void generateMarkdownForSimpleObject() { YamlDocGenerator generator = new YamlDocGenerator(new HashMap<>()); String markdown = generator.generateForClass(generateSchema(SimpleObject.class)); assertThat( markdown, containsString( String.join( "\n", tableHeader(), tableEntry("`aaBoolean`", "Boolean", "A flag"), tableEntry("`aaString`", "string", "A string"), tableEntry("`depth`", "number", "")))); }