@Test
public void getJarPathIteratorFromPathTest() {

    String filePath = "/some/path/to/file.jar/child.war/subChild.jar";
    final Iterator<Path> iterator = AntennaUtils.getJarPathIteratorFromPath(Paths.get(filePath).toAbsolutePath());
    Path val;
    assertThat(iterator.hasNext()).isTrue();
    val = iterator.next();
    assertThat(val).hasToString(toAbsolutePathname("/some/path/to/file.jar"));
    assertThat(iterator.hasNext()).isTrue();
    val = iterator.next();
    assertThat(val).hasToString(File.separator + "child.war");  // relative path
    assertThat(iterator.hasNext()).isTrue();
    val = iterator.next();
    assertThat(val).hasToString(File.separator + "subChild.jar");  // relative path
    assertThat(iterator.hasNext()).isFalse();
}