### Question:
AbstractKinesisRecorder { public void saveRecord(String data, String streamName) { saveRecord(data.getBytes(StringUtils.UTF8), streamName); } protected  AbstractKinesisRecorder(FileRecordStore recordStore, KinesisRecorderConfig config); void saveRecord(String data, String streamName); void saveRecord(byte[] data, String streamName); synchronized void submitAllRecords(); KinesisRecorderConfig getKinesisRecorderConfig(); long getDiskBytesUsed(); long getDiskByteLimit(); synchronized void deleteAllRecords();  }### Answer:
@Test public void testSaveRecord() { assertEquals("no record", 0, recorder.getDiskBytesUsed()); for (int i = 0; i < 10; i++) { long diskUsage = recorder.getDiskBytesUsed(); recorder.saveRecord(randomBytes(1024), STREAM_NAME); assertTrue("record saved", recorder.getDiskBytesUsed() > diskUsage); } recorder.deleteAllRecords(); assertEquals("no record", 0, recorder.getDiskBytesUsed()); }