### Question:
QueryWords { @BadSmell("This should not receive the index") public String get(int index) { return words[index]; } @BadSmell("There is no test for the jpql ajust")  QueryWords(String jpql); @BadSmell("This should not receive the index") String get(int index); String current(); String next(); String getJpql(); int length(); boolean hasMoreWord(); boolean isThereMoreWhereElements(); boolean isLogicOperator(); boolean hasMoreFromItem(); boolean hasMoreSelectItem(); List<String> getAsPath(); boolean hasWithClause(); int getPosition(); @BadSmell("current or next?") void require(String value); boolean hasMoreGroupByElements(); boolean hasMoreOrderByElements();  }### Answer:
@Test public void testInAjust() { String jpql = "FROM A a, in(a.itens) item"; QueryWords words = new QueryWords(jpql); assertEquals(",", words.get(3)); assertEquals("in", words.get(4)); assertEquals("(a.itens)", words.get(5)); }