### Question:
CompletionUtils { static int getLastSeparatorIndex(String str) { int lastSeparatorIndex = -1; for (char separator : SEPARATORS) { int buf = str.lastIndexOf(separator); if (buf > lastSeparatorIndex) { lastSeparatorIndex = buf; } } return lastSeparatorIndex; }    }### Answer:
@Test public void testGetLastSeparatorIndex() { assertEquals(14, CompletionUtils.getLastSeparatorIndex(SELECT_ID_FROM_MYDB_TABLE)); assertEquals(37, CompletionUtils.getLastSeparatorIndex(SELECT_ID_FROM_TABLE_S_WHERE_S_ID_1)); }