### Question:
ReaderTGFF { protected boolean isClosing(String line) { return (line.contains(CLOSING) && !line.contains(COMMENT)); }  SpecificationTypeBased read(String filename); SpecificationTypeBased read(File file); SpecificationTypeBased read(InputStream in); SpecificationTypeBased toSpecification(List<String> in); static final String TGFF_TYPE; static final String PERIOD; static final String MSG_SIZE; static final String RES_ATTRIBUTES; static final String RES_VALUES; static final String HARD_DEADLINE; static final String SOFT_DEADLINE; static final String WIRE; }### Answer:
@Test public void testIsClosing() { ReaderTGFF reader = new ReaderTGFF(); Assert.assertTrue(reader.isClosing("closing line: }")); Assert.assertFalse(reader.isClosing("# non-closing line...")); }