RetrieveAttributesLiveCommandImpl extends AbstractQueryLiveCommand<RetrieveAttributesLiveCommand,
        RetrieveAttributesLiveCommandAnswerBuilder> implements RetrieveAttributesLiveCommand { @Nonnull public static RetrieveAttributesLiveCommandImpl of(final Command<?> command) { return new RetrieveAttributesLiveCommandImpl((RetrieveAttributes) command); } private  RetrieveAttributesLiveCommandImpl(final RetrieveAttributes command); @Nonnull static RetrieveAttributesLiveCommandImpl of(final Command<?> command); @Override RetrieveAttributesLiveCommand setDittoHeaders(final DittoHeaders dittoHeaders); @Nonnull @Override RetrieveAttributesLiveCommandAnswerBuilder answer(); @Nonnull @Override String toString();  }
@SuppressWarnings("ConstantConditions") @Test public void tryToGetRetrieveAttributesLiveCommandForNull() { assertThatExceptionOfType(NullPointerException.class) .isThrownBy(() -> RetrieveAttributesLiveCommandImpl.of(null)) .withMessage(MessageFormat.format("The {0} must not be null!", "command")) .withNoCause(); }
@Test public void tryToGetRetrieveAttributesLiveCommandForCreateAttributeCommand() { final Command<?> commandMock = Mockito.mock(Command.class); assertThatExceptionOfType(ClassCastException.class) .isThrownBy(() -> RetrieveAttributesLiveCommandImpl.of(commandMock)) .withMessageContaining( RetrieveAttributes.class.getName()) .withNoCause(); }