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