@Test
public void completeFormats() {

    ArrayList<CharSequence> r = new ArrayList<>();
    complete("set format h", r);
    assertEquals(1, r.size());
    assertEquals("html", r.get(0));
    r = new ArrayList<>();
    complete("set format", r);
    assertEquals(5, r.size());
}