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