@Test
public void writeConfigWithBasicConfig() throws Exception {

  String jsonString = Iterables.getOnlyElement(
      writer.writeConfig(Collections.singleton(apiConfig)).values());
  assertNotNull(jsonString);
  JsonNode root = objectMapper.readValue(jsonString, JsonNode.class);
  assertEquals("myapi", root.path("name").asText());
  assertEquals("v1", root.path("version").asText());
}