### Question:
Spelling { boolean possiblePrefixes(String prefix) { if (possiblesTrie.lookup(prefix)) return true; for (int i = 1; i <= MAX_EDIT_LENGTH; i++) { if (generateKEdits(i, prefix, possiblePrefixWordMatcher)) return true; } return false; } Spelling(InputStream file);   }### Answer:
@Test public void testAPossiblePrefixes() throws Exception { assertTrue(spelling.possiblePrefixes("a")); }
@Test public void testAAPossiblePrefixes() throws Exception { assertTrue(spelling.possiblePrefixes("aa")); }
@Test public void testAAAPossiblePrefixes() throws Exception { assertTrue(spelling.possiblePrefixes("aaa")); }
@Test public void testAAAAPossiblePrefixes() throws Exception { assertFalse(spelling.possiblePrefixes("aaaa")); }
@Test public void testAAAAAPossiblePrefixes() throws Exception { assertFalse(spelling.possiblePrefixes("aaaaa")); }
@Test public void testAAAAAAPossiblePrefixes() throws Exception { assertFalse(spelling.possiblePrefixes("aaaaaa")); }
@Test public void testAAAAAAAPossiblePrefixes() throws Exception { assertFalse(spelling.possiblePrefixes("aaaaaaa")); }