### Question:
JoltTransformJSON extends AbstractProcessor { @Override public Set<Relationship> getRelationships() { return relationships; }  @Override Set<Relationship> getRelationships(); @Override void onTrigger(final ProcessContext context, ProcessSession session); @OnScheduled synchronized void setup(final ProcessContext context); static final AllowableValue SHIFTR; static final AllowableValue CHAINR; static final AllowableValue DEFAULTR; static final AllowableValue REMOVR; static final AllowableValue CARDINALITY; static final AllowableValue SORTR; static final AllowableValue CUSTOMR; static final AllowableValue MODIFIER_DEFAULTR; static final AllowableValue MODIFIER_OVERWRITER; static final AllowableValue MODIFIER_DEFINER; static final PropertyDescriptor JOLT_TRANSFORM; static final PropertyDescriptor JOLT_SPEC; static final PropertyDescriptor CUSTOM_CLASS; static final PropertyDescriptor MODULES; static final Relationship REL_SUCCESS; static final Relationship REL_FAILURE; }### Answer:
@Test public void testRelationshipsCreated() throws IOException{ Processor processor= new JoltTransformJSON(); final TestRunner runner = TestRunners.newTestRunner(processor); final String spec = new String(Files.readAllBytes(Paths.get("src/test/resources/TestJoltTransformJson/chainrSpec.json"))); runner.setProperty(JoltTransformJSON.JOLT_SPEC, spec); runner.enqueue(JSON_INPUT); Set<Relationship> relationships = processor.getRelationships(); assertTrue(relationships.contains(JoltTransformJSON.REL_FAILURE)); assertTrue(relationships.contains(JoltTransformJSON.REL_SUCCESS)); assertTrue(relationships.size() == 2); }