### Question:
EdgeMetadata { public boolean isEdge(CSVRecord record) { return (!record.get(firstColumnIndex).isEmpty()) && (!record.get(firstColumnIndex + 1).isEmpty()) && (!record.get(firstColumnIndex + 2).isEmpty()); } private  EdgeMetadata(Headers headers,
                         int firstColumnIndex,
                         Supplier<String> idGenerator,
                         PropertyValueParser parser); static EdgeMetadata parse(CSVRecord record, PropertyValueParser parser); List<String> headers(); boolean isEdge(CSVRecord record); Iterable<String> toIterable(CSVRecord record);  }### Answer:
@Test public void shouldIndicateWhetherARecordContainsAnEdge() { String columnHeaders = "\"_id\",\"_labels\",\"address\",\"name\",\"index\",\"txid\",\"_start\",\"_end\",\"_type\",\"strength\",\"timestamp\""; EdgeMetadata edgeMetadata = createEdgeMetadata(columnHeaders); CSVRecord vertexRecord = CSVUtils.firstRecord("\"1\",\"Person\",\"address\",\"name\",\"1\",\"1\",,,,,"); CSVRecord edgeRecord = CSVUtils.firstRecord(",,,,,,\"1\",\"2\",\"KNOWS\",\"10\",\"12345\""); assertFalse(edgeMetadata.isEdge(vertexRecord)); assertTrue(edgeMetadata.isEdge(edgeRecord)); }