@Test
  public void testJoinPaths() {
    assertEquals("/toplevel/nested/{param}/list",
        AmbariSwaggerReader.joinPaths("", "/", "/", "", "toplevel", "/nested/", "/{param}", "list"));
    assertEquals("/toplevel/nested/{param}/list",
        AmbariSwaggerReader.joinPaths("/", "toplevel", "", "/nested/", "/", "/{param}", "list", ""));
  }
Test the {@link AmbariSwaggerReader#joinPaths(String, String...)} method
ambari-utility/src/test/java/org/apache/ambari/swagger/AmbariSwaggerReaderTest.java