RetrieveResource extends AbstractCommand<RetrieveResource> implements PolicyQueryCommand<RetrieveResource> { @Deprecated public static RetrieveResource of(final String policyId, final Label label, final ResourceKey resourceKey, final DittoHeaders dittoHeaders) { return of(PolicyId.of(policyId), label, resourceKey, dittoHeaders); } private  RetrieveResource(final PolicyId policyId,
            final Label label,
            final ResourceKey resourceKey,
            final DittoHeaders dittoHeaders); @Deprecated static RetrieveResource of(final String policyId,
            final Label label,
            final ResourceKey resourceKey,
            final DittoHeaders dittoHeaders); static RetrieveResource of(final PolicyId policyId,
            final Label label,
            final ResourceKey resourceKey,
            final DittoHeaders dittoHeaders); static RetrieveResource fromJson(final String jsonString, final DittoHeaders dittoHeaders); static RetrieveResource fromJson(final JsonObject jsonObject, final DittoHeaders dittoHeaders); Label getLabel(); ResourceKey getResourceKey(); @Override PolicyId getEntityId(); @Override JsonPointer getResourcePath(); @Override RetrieveResource setDittoHeaders(final DittoHeaders dittoHeaders); @SuppressWarnings({"squid:MethodCyclomaticComplexity", "squid:S1067", "OverlyComplexMethod"}) @Override boolean equals(@Nullable final Object obj); @SuppressWarnings("squid:S109") @Override int hashCode(); @Override String toString(); static final String NAME; static final String TYPE; }
@Test(expected = NullPointerException.class) public void tryToCreateInstanceWithNullResourceId() { RetrieveResource.of(TestConstants.Policy.POLICY_ID, TestConstants.Policy.LABEL, null, EMPTY_DITTO_HEADERS); }