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