public final Protocols testActorFor(final Class<?>[] protocols, final Definition definition) {
    final Definition redefinition =
            Definition.has(
                    definition.type(),
                    definition.parameters(),
                    TestMailbox.Name,
                    definition.actorName());

    final ActorProtocolActor<Object>[] all =
            actorProtocolFor(
                    protocols,
                    redefinition,
                    definition.parentOr(world.defaultParent()),
                    null,
                    null,
                    definition.supervisor(),
                    definition.loggerOr(world.defaultLogger()));

    return new Protocols(ActorProtocolActor.toTestActors(all));
  }
public final Protocols testActorFor ( final Class < ? > [ ] protocols , final Definition definition ) { final Definition redefinition = Definition . has ( definition . type ( ) , definition . parameters ( ) , TestMailbox . Name , definition . actorName ( ) ) ; final ActorProtocolActor < Object > [ ] all = actorProtocolFor ( protocols , redefinition , definition . parentOr ( world . defaultParent ( ) ) , null , null , definition . supervisor ( ) , definition . loggerOr ( world . defaultLogger ( ) ) ) ; return new Protocols ( ActorProtocolActor . toTestActors ( all ) ) ; }
Answers a {@code Protocols} that provides one or more supported {@code protocols} for the
newly created {@code Actor} according to {@code definition}, that can be used for testing.
Test-based {@code Actor} instances are backed by the synchronous {@code TestMailbox}.
@param protocols the {@code Class<T>}[] array of protocols that the {@code Actor} supports
@param definition the {@code Definition} providing parameters to the {@code Actor}
@return Protocols