ModifyAttributeLiveCommandImpl extends AbstractModifyLiveCommand<ModifyAttributeLiveCommand,
        ModifyAttributeLiveCommandAnswerBuilder> implements ModifyAttributeLiveCommand { @Nonnull public static ModifyAttributeLiveCommandImpl of(final Command<?> command) { return new ModifyAttributeLiveCommandImpl((ModifyAttribute) command); } private  ModifyAttributeLiveCommandImpl(final ModifyAttribute command); @Nonnull static ModifyAttributeLiveCommandImpl of(final Command<?> command); @Nonnull @Override JsonPointer getAttributePointer(); @Nonnull @Override JsonValue getAttributeValue(); @Override Category getCategory(); @Override ModifyAttributeLiveCommand setDittoHeaders(final DittoHeaders dittoHeaders); @Override boolean changesAuthorization(); @Nonnull @Override ModifyAttributeLiveCommandAnswerBuilder answer(); @Nonnull @Override String toString();  }
@SuppressWarnings("ConstantConditions") @Test public void tryToGetModifyAttributeLiveCommandForNull() { assertThatExceptionOfType(NullPointerException.class) .isThrownBy(() -> ModifyAttributeLiveCommandImpl.of(null)) .withMessage(MessageFormat.format("The {0} must not be null!", "command")) .withNoCause(); }
@Test public void tryToGetModifyAttributeLiveCommandForCreateThingCommand() { final Command<?> commandMock = Mockito.mock(Command.class); assertThatExceptionOfType(ClassCastException.class) .isThrownBy(() -> ModifyAttributeLiveCommandImpl.of(commandMock)) .withMessageContaining(ModifyAttribute.class.getName()) .withNoCause(); }