@Test
public void testIndexOf() {

    String[] input = {
            "the", "quick", "brown", "fox", "jumps", "over", "lazy", "dog"
    };
    int[] expected = { 0, 1, 2, 3, 4, 5, 6, 7 };
    for (int i = 0; i < expected.length; i++) {
        Assert.assertEquals(expected[i], t.indexOf(input[i]));
    }
}