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