### Question:
CGT { public String getHeader() { return header; } CGT(); Entry retrieveEntry(); boolean atEOF(); void close(); boolean isRecordComplete(); int getEntryCount(); int getEntriesRead(); String getHeader(); boolean getNextRecord(); void open(File file); void open(InputStream input); boolean retrieveBoolean(); int retrieveByte(); int retrieveInteger(); String retrieveString(); static final int RECORD_CONTENT_MULTI; }### Answer:
@Test public void testGetHeader() throws Exception { CGT cgt = new CGT(); assertNull("didn't expect header", cgt.getHeader()); cgt.open(new ByteArrayInputStream(toByteArray(HEADER, SAMPLE_BYTES))); assertEquals("wrong value", "GOLD Parser", cgt.getHeader()); }