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