MCCIIN000002UV01EventDescriptionBuilder extends TargetEventDescriptionBuilder { @Override public void setReturnValue(Object input) { if (input != null && (input instanceof MCCIIN000002UV01)) { MCCIIN000002UV01 val = (MCCIIN000002UV01) input; returnValue = Optional.of(val); } else { returnValue = Optional.absent(); } }  @Override void buildTimeStamp(); @Override void buildStatuses(); @Override void buildPayloadTypes(); @Override void buildPayloadSizes(); @Override void buildErrorCodes(); @Override void setArguments(Object... arguments); @Override void setReturnValue(Object input);  }
@Test public void nullReturnValue() { MCCIIN000002UV01EventDescriptionBuilder builder = new MCCIIN000002UV01EventDescriptionBuilder(); builder.setReturnValue(null); EventDescription eventDescription = getEventDescription(builder); assertNotNull(eventDescription); }
@Test public void invalidReturnType() { MCCIIN000002UV01EventDescriptionBuilder builder = new MCCIIN000002UV01EventDescriptionBuilder(); builder.setReturnValue(new Object()); EventDescription eventDescription = getEventDescription(builder); assertNotNull(eventDescription); }