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