ImmutableReceiverChain implements IReceiverChain, IDumpable { @Override public String getName() { return name; } ImmutableReceiverChain(final String name, final IObject chainDescription, final IMessageReceiver[] receivers, final IObject[] arguments,
                                  final Map<Class<? extends Throwable>, IObject> exceptionalChainsAndEnv); @Override IMessageReceiver get(final int index); @Override IObject getArguments(final int index); @Override String getName(); @Override IObject getExceptionalChainAndEnvironments(final Throwable exception); @Override IObject getChainDescription(); @Override Collection<IReceiverChain> getExceptionalChains(); @Override IObject dump(final IObject options);  }
@Test public void Should_beConstructedWithValidParameters() throws Exception { IMessageReceiver[] receivers = new IMessageReceiver[0]; IReceiverChain chain = new ImmutableReceiverChain("theChain", mock(IObject.class), receivers, new IObject[0], mock(Map.class)); assertEquals("theChain", chain.getName()); }