DocSubmissionArgTransformerBuilder extends DelegatingEventDescriptionBuilder { @Override public void setArguments(Object... arguments) { getDelegate().setArguments(arguments); } DocSubmissionArgTransformerBuilder(); @Override void setArguments(Object... arguments); @Override void setReturnValue(Object returnValue);  }
@Test public void validateSetArguments() { AssertionType assertion = mock(AssertionType.class); HomeCommunityType hcType = mock(HomeCommunityType.class); AssertionDescriptionExtractor assertionExtractor = mock(AssertionDescriptionExtractor.class); when(assertion.getHomeCommunity()).thenReturn(hcType); when(hcType.getHomeCommunityId()).thenReturn("hcid"); when(assertionExtractor.getAssertion(assertion)).thenReturn(assertion); Object[] args = new Object[]{assertion}; DocSubmissionArgTransformerBuilder builder = getBuilder(); builder.setArguments(args); EventDescription eventDescription = getEventDescription(builder); assertEquals("hcid", eventDescription.getInitiatingHCID()); }