DeleteAttributesLiveCommandImpl extends AbstractModifyLiveCommand<DeleteAttributesLiveCommand, DeleteAttributesLiveCommandAnswerBuilder> implements DeleteAttributesLiveCommand { @Nonnull public static DeleteAttributesLiveCommandImpl of(final Command<?> command) { return new DeleteAttributesLiveCommandImpl((DeleteAttributes) command); } private  DeleteAttributesLiveCommandImpl(final DeleteAttributes command); @Nonnull static DeleteAttributesLiveCommandImpl of(final Command<?> command); @Nonnull @Override DeleteAttributesLiveCommandAnswerBuilder answer(); @Override Category getCategory(); @Override DeleteAttributesLiveCommand setDittoHeaders(final DittoHeaders dittoHeaders); @Override boolean changesAuthorization(); @Nonnull @Override String toString();  }
@SuppressWarnings("ConstantConditions") @Test public void tryToGetDeleteAttributesLiveCommandForNull() { assertThatExceptionOfType(NullPointerException.class) .isThrownBy(() -> DeleteAttributesLiveCommandImpl.of(null)) .withMessage(MessageFormat.format("The {0} must not be null!", "command")) .withNoCause(); }
@Test public void tryToGetDeleteAttributesLiveCommandForCreateAttributesCommand() { final Command<?> commandMock = Mockito.mock(Command.class); assertThatExceptionOfType(ClassCastException.class) .isThrownBy(() -> DeleteAttributesLiveCommandImpl.of(commandMock)) .withMessageContaining(DeleteAttributes.class.getName()) .withNoCause(); }