### Question:
CGT { public boolean isRecordComplete() { return entriesRead >= entryCount; } 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 testIsRecordComplete() throws Exception { CGT cgt = new CGT(); cgt.open(new ByteArrayInputStream(toByteArray(HEADER, SAMPLE_BYTES))); cgt.getNextRecord(); assertFalse("should have more to read", cgt.isRecordComplete()); cgt.retrieveByte(); assertFalse("should have more to read", cgt.isRecordComplete()); cgt.retrieveByte(); assertFalse("should have more to read", cgt.isRecordComplete()); cgt.retrieveByte(); assertTrue("should have more to read", cgt.isRecordComplete()); }