### Question:
ListGridRecordFactory { public ListGridRecord newListGridRecord(JsonNode node) { if (!node.isNullNode()) { final ListGridRecord record = new ListGridRecord(); updater.update(record, node); return record; } else { return null; } } @Inject  ListGridRecordFactory(RecordJSONUpdater updater); ListGridRecord newListGridRecord(JsonNode node); ListGridRecord[] newListGridRecords(List<JsonNode> nodes);  }### Answer:
@Test public void test_newRecord() { assertTrue(recordFactory.newListGridRecord(aJsonObject()) != null); }
@Test public void test_returnsNullWhenNullJsonNode() { assertNull(recordFactory.newListGridRecord(aJsonNull())); }
@Test public void test_callsUpdaterWhenCreatingRecord() { final JsonNode node = aJsonObject(); final ListGridRecord record = recordFactory.newListGridRecord(node); verify(updater).update(record, node); }