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