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