@Test
public final void testGetLength2() {

    assertEquals(PathUtils.getLength(path, path.get(0), path.get(path
            .size() - 1)), PATH_LENGTH);
    assertEquals(PathUtils.getLength(path, null, null), RETURN_CODE_MINUS_ONE);
    assertEquals(PathUtils.getLength(null, null, null), 0);
    assertEquals(PathUtils.getLength(emptyPath, null, null), 0);
    assertEquals(PathUtils.getLength(path, path.get(path.size() - 1), path
            .get(0)), RETURN_CODE_MINUS_ONE);
    assertEquals(PathUtils.getLength(path, path.get(0), null),
            RETURN_CODE_MINUS_ONE);
    assertEquals(PathUtils.getLength(path, null, path.get(0)),
            RETURN_CODE_MINUS_ONE);
}