@Test
public void ensuresFormatterIsValid() {

    Assertions.assertThrows(IllegalArgumentException.class, () -> {
        CodeFormatter formatter = new CodeFormatter();
        formatter.format('$', "$L", "", createWriter(), "hi");
    });
}