AddGraphWithHooks extends AddGraph { public GraphHook[] getHooks() { return hooks; }  @Override AddGraphWithHooks shallowClone(); GraphHook[] getHooks(); void setHooks(final GraphHook[] hooks);  }
@Test @Override public void builderShouldCreatePopulatedOperation() { Schema expectedSchema = new Schema.Builder().build(); StoreProperties storeProperties = new AccumuloProperties(); Log4jLogger log4jLogger = new Log4jLogger(); AddGraphWithHooks op = new Builder() .graphId(EXPECTED_GRAPH_ID) .schema(expectedSchema) .storeProperties(storeProperties) .hooks(log4jLogger) .readAccessPredicate(READ_ACCESS_PREDICATE) .writeAccessPredicate(WRITE_ACCESS_PREDICATE) .build(); assertEquals(EXPECTED_GRAPH_ID, op.getGraphId()); assertEquals(expectedSchema, op.getSchema()); assertNotNull(op.getStoreProperties().getStorePropertiesClassName()); assertEquals(AccumuloProperties.class, op.getStoreProperties().getStorePropertiesClass()); assertEquals(1, op.getHooks().length); assertEquals(log4jLogger, op.getHooks()[0]); assertEquals(READ_ACCESS_PREDICATE, op.getReadAccessPredicate()); assertEquals(WRITE_ACCESS_PREDICATE, op.getWriteAccessPredicate()); }