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