### Question:
GraphMutationResult implements BatchMutation.Result, VisitOperationResult { public List<String> getEntityKeys() { return entityKeys; } GraphMutationResult();  GraphMutationResult(List<String> entityKeys); List<String> getEntityKeys();  }### Answer:
@Test public void testCreateGraphMutationResultWithEntityKeys(){ List<String> entityKeys = new ArrayList<String>(Arrays.asList("Key1", "Key2", "Key3")); GraphMutationResult graphMutationResult = new GraphMutationResult(entityKeys ); List<String> entityKeysReturned = graphMutationResult.getEntityKeys(); assertNotNull(entityKeysReturned); assertEquals(entityKeys.size(), entityKeysReturned.size()); assertEquals(entityKeys, entityKeysReturned); }
@Test public void testCreateGraphMutationResultWithoutKeys(){ GraphMutationResult graphMutationResult = new GraphMutationResult(); assertEquals(Collections.emptyList(), graphMutationResult.getEntityKeys()); }