class FileParser implements Closeable {

    public void registerRecordCallback(String recordName, RecordCallback callback) {
        List<RecordCallback> callbacks = recordCallbacks.get(recordName);
        if (!callbacks.contains(callback)) {
            recordCallbacks.put(recordName, callback);
        }
    }

}

class FileParserTest {

    @Test
    public void executeRecordCallback() {

        RecordCallback callback = mock(RecordCallback.class);
        MatchedRecord matchedRecord = mock(MatchedRecord.class);

        FileParser parser = new FileParser("", "");
        parser.registerRecordCallback("test", callback);

        // TODO when there is more time - need to have content and config embedded into the test.
//        verify(callback, atMost(1)).processRecord(matchedRecord);
    }

}