RetrieveThingLiveCommandAnswerBuilderImpl extends AbstractLiveCommandAnswerBuilder<RetrieveThingLiveCommand, ResponseFactory> implements RetrieveThingLiveCommandAnswerBuilder { public static RetrieveThingLiveCommandAnswerBuilderImpl newInstance(final RetrieveThingLiveCommand command) { return new RetrieveThingLiveCommandAnswerBuilderImpl(command); } private  RetrieveThingLiveCommandAnswerBuilderImpl(final RetrieveThingLiveCommand command); static RetrieveThingLiveCommandAnswerBuilderImpl newInstance(final RetrieveThingLiveCommand command);  }
@SuppressWarnings("ConstantConditions") @Test public void tryToGetNewInstanceWithNullCommand() { assertThatExceptionOfType(NullPointerException.class) .isThrownBy(() -> RetrieveThingLiveCommandAnswerBuilderImpl.newInstance(null)) .withMessage(MessageFormat.format("The {0} must not be null!", "command")) .withNoCause(); }