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