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