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