@Test
  public void swaggerApiThatIsBothTopLevelAndNestedIsCountedAsTopLevel() {
    AmbariSwaggerReader asr = new AmbariSwaggerReader(null, createMock(Log.class));
    Swagger swagger = asr.read(ImmutableSet.of(YetAnotherTopLevelAPI.class, NestedAndTopLevelAPI.class));
    assertEquals(ImmutableSet.of("/toplevel3/yetAnotherTop", "/canBeReachedFromTopToo/list"),
        swagger.getPaths().keySet());
  }
If an API is both top level (the class has a @Path annotation) and nested (class is a return type of an
API operation) then it should be treated as top level.
ambari-utility/src/test/java/org/apache/ambari/swagger/AmbariSwaggerReaderTest.java