@Test
public void test_indexOfOutOfQuotes() {

    assertEquals(0, indexOfOutOfQuotes("bla\"bla\"bla", "bla"));
    assertEquals(5, indexOfOutOfQuotes("\"bla\"bla", "bla"));
    assertEquals(-1, indexOfOutOfQuotes("\"bla\"", "bla"));
    assertEquals(0, indexOfOutOfQuotes("bla\"bla\"bla", "bla", 0));
    assertEquals(8, indexOfOutOfQuotes("bla\"bla\"bla", "bla", 1));
    assertEquals(-1, indexOfOutOfQuotes("bla\"bla\"bla", "bla", 9));
}