}
@Test
public void testExecutePassedOnToPeer() {
final TestProxyAdapter target = new TestProxyAdapter();
target.setupSpecification(new TestSpecification());
final ObjectAdapter[] parameters = new ObjectAdapter[2];
final TestProxyAdapter result = new TestProxyAdapter();
final ActionInvocationFacet facet = new ActionInvocationFacetAbstract(mockFacetedMethod) {
@Override
public ObjectAdapter invoke(final ObjectAdapter target, final ObjectAdapter[] parameters) {
return result;
}
@Override
public ObjectSpecification getReturnType() {
return null;
}
@Override
public ObjectSpecification getOnType() {
return new TestSpecification();
}
};
mockery.checking(new Expectations() {
{