DeferredResponseDescriptionBuilder extends TargetEventDescriptionBuilder { @Override public void setArguments(Object... arguments) { extractAssertion(arguments); extractResponse(arguments); extractTarget(arguments); }  @Override void buildTimeStamp(); @Override void buildStatuses(); @Override void buildPayloadTypes(); @Override void buildPayloadSizes(); @Override void buildErrorCodes(); @Override void setArguments(Object... arguments); @Override void setReturnValue(Object returnValue);  }
@Test public void extractsAssertion() { AssertionType mock = mock(AssertionType.class); builder.setArguments(mock); assertEquals(mock, builder.getAssertion().get()); }
@Test public void nullArgumentsNoException() { builder.setArguments((Object[]) null); }