ModifyFeatureDefinitionLiveCommandImpl extends
        AbstractModifyLiveCommand<ModifyFeatureDefinitionLiveCommand, ModifyFeatureDefinitionLiveCommandAnswerBuilder> implements ModifyFeatureDefinitionLiveCommand { @Nonnull public static ModifyFeatureDefinitionLiveCommandImpl of(final Command<?> command) { return new ModifyFeatureDefinitionLiveCommandImpl((ModifyFeatureDefinition) command); } private  ModifyFeatureDefinitionLiveCommandImpl(final ModifyFeatureDefinition command); @Nonnull static ModifyFeatureDefinitionLiveCommandImpl of(final Command<?> command); @Override String getFeatureId(); @Nonnull @Override FeatureDefinition getDefinition(); @Override Category getCategory(); @Override ModifyFeatureDefinitionLiveCommand setDittoHeaders(final DittoHeaders dittoHeaders); @Override boolean changesAuthorization(); @Nonnull @Override ModifyFeatureDefinitionLiveCommandAnswerBuilder answer(); @Nonnull @Override String toString();  }
@SuppressWarnings("ConstantConditions") @Test public void tryToGetModifyFeatureDefinitionLiveCommandForNull() { assertThatNullPointerException() .isThrownBy(() -> ModifyFeatureDefinitionLiveCommandImpl.of(null)) .withMessage("The %s must not be null!", "command") .withNoCause(); }
@Test public void tryToGetModifyFeatureDefinitionLiveCommandForCreateThingCommand() { final Command<?> commandMock = Mockito.mock(Command.class); assertThatExceptionOfType(ClassCastException.class) .isThrownBy(() -> ModifyFeatureDefinitionLiveCommandImpl.of(commandMock)) .withMessageContaining( ModifyFeatureDefinition.class.getName()) .withNoCause(); }