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