GafferOutput extends RichOutputFormat<Element> { @Override public void open(final int taskNumber, final int numTasks) throws IOException { adder.initialise(); } <OP extends Validatable & Operation> GafferOutput(final OP validatable, final Store store);  GafferOutput(final GafferAdder adder); @Override void configure(final Configuration parameters); @Override void writeRecord(final Element element); @Override void open(final int taskNumber, final int numTasks); @Override void close();  }
@Test public void shouldDelegateOpenToGafferAddedInitialise() throws Exception { final GafferAdder adder = mock(GafferAdder.class); final GafferOutput output = new GafferOutput(adder); output.open(1, 2); verify(adder).initialise(); }