TopLevelObjectCreator implements IReceiverObjectCreator { @Override public Collection<Object> enumIdentifiers(IObject config, IObject context) throws InvalidReceiverPipelineException, ReceiverObjectCreatorException { return Collections.singletonList(null); } TopLevelObjectCreator(); @Override void create(IReceiverObjectListener listener, IObject config, IObject context); @Override Collection<Object> enumIdentifiers(IObject config, IObject context);  }
@Test public void Should_returnListOfOneIdentifier() throws Exception { IReceiverObjectCreator creator = new TopLevelObjectCreator(); assertEquals(Collections.singletonList(null), creator.enumIdentifiers(configMock, contextMock)); }