HandlerRouterReceiverCreator extends BasicIntermediateReceiverObjectCreator { @Override public Collection<Object> enumIdentifiers(IObject config, IObject context) throws InvalidReceiverPipelineException, ReceiverObjectCreatorException { return Collections.singletonList(null); } HandlerRouterReceiverCreator(IReceiverObjectCreator underlyingObjectCreator, IObject filterConfig, IObject objectConfig); @Override Collection<Object> enumIdentifiers(IObject config, IObject context); @Override void acceptItem(Object itemId, Object item); @Override void endItems();  }
@Test public void Should_returnOneUndefinedIdentifier() throws Exception { assertEquals( Collections.singletonList(null), new HandlerRouterReceiverCreator(creatorMock, filterConfig, objectConfig).enumIdentifiers(objectConfig, context) ); }