### Question:
GraphEntityMutation implements Entity.Mutation { @Override public com.intuit.ugc.api.BatchMutation ready() { if(this.delete){ DeleteEntity deleteEntity = new DeleteEntity(entity); pipeline.add(deleteEntity); }else{ UpdateEntity updateEntity = new UpdateEntity(entity,attributeOperatons); pipeline.add(updateEntity); } return batchMutation; } GraphEntityMutation(Entity entity,
            OperationPipeline assemblyLine,
            BatchMutation batchMutation); @Override ValueSpecifier<Mutation> withAttribute(Name name); @Override Mutation deleteAttribute(Name name); @Override Mutation deleteAttributes(Attribute.Family namespace); @Override Mutation delete(); @Override com.intuit.ugc.api.BatchMutation ready();  }### Answer:
@Test public void testReady(){ MutationExecutorFactory factory = new MockMutationExecuterFactory(); BatchMutation graphBatchMutation = new GraphMutation(factory ); GraphEntityMutation graphEntityMutation = createGraphEntityMutation(graphBatchMutation); BatchMutation graphBatchMutation2 = graphEntityMutation.ready(); assertNotNull(graphBatchMutation); assertEquals(graphBatchMutation2, graphBatchMutation); }