ImmutableReceiverChain implements IReceiverChain, IDumpable { @Override public IObject dump(final IObject options) { return getChainDescription(); } 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_dumpMethodReturnTheChainDescription() throws Exception { IMessageReceiver[] receivers = new IMessageReceiver[0]; IObject description = mock(IObject.class); IReceiverChain chain = new ImmutableReceiverChain("theChain", description, receivers, new IObject[0], mock(Map.class)); assertSame(description, ((IDumpable) chain).dump(null)); }