@Test
public void testShift() {

    String path = "testing.like.there's.no.tomorrow";
    String[] original = path.split("\\.");
    String[] rest = LayerValidator.shiftArray(original);
    for (int i = 1; i < original.length; i++) {
        assertEquals(original[i], rest[0]);
        rest = LayerValidator.shiftArray(rest);
    }
    assertEquals("Rest should be empty", rest.length, 0);
}