ImmutableThingFromScratchBuilder implements ThingBuilder, ThingBuilder.FromScratch { @Override @Deprecated public FromScratch removePermissionsOf(final AuthorizationSubject authorizationSubject) { checkNotNull(authorizationSubject, "authorization subject of which all permissions are to be removed"); if (null != aclBuilder) { invokeOnAclBuilder(ab -> ab.remove(authorizationSubject)); } return this; } private  ImmutableThingFromScratchBuilder(); static ImmutableThingFromScratchBuilder newInstance(); @Override FromScratch setAttributes(final Attributes attributes); @Override FromScratch setAttributes(final JsonObject attributesJsonObject); @Override FromScratch setAttributes(final String attributesJsonString); @Override FromScratch removeAllAttributes(); @Override FromScratch setEmptyAttributes(); @Override FromScratch setNullAttributes(); @Override FromScratch setAttribute(final JsonPointer attributePath, final JsonValue attributeValue); @Override FromScratch removeAttribute(final JsonPointer attributePath); @Override FromScratch setDefinition(@Nullable final ThingDefinition definition); @Override FromScratch setNullDefinition(); @Override FromScratch removeDefinition(); @Override FromScratch setFeature(final Feature feature); @Override FromScratch setFeature(final String featureId); @Override FromScratch setFeature(final String featureId, final FeatureDefinition featureDefinition,
            final FeatureProperties featureProperties); @Override FromScratch setFeature(final String featureId, final FeatureProperties featureProperties); @Override FromScratch removeFeature(final String featureId); @Override FromScratch setFeatureDefinition(final String featureId, final FeatureDefinition featureDefinition); @Override FromScratch removeFeatureDefinition(final String featureId); @Override FromScratch setFeatureProperty(final String featureId, final JsonPointer propertyPath,
            final JsonValue propertyValue); @Override FromScratch removeFeatureProperty(final String featureId, final JsonPointer propertyPath); @Override FromScratch setFeatureProperties(final String featureId, final FeatureProperties featureProperties); @Override FromScratch removeFeatureProperties(final String featureId); @Override FromScratch setFeatures(final Iterable<Feature> features); @Override FromScratch removeAllFeatures(); @Override FromScratch setEmptyFeatures(); @Override FromScratch setNullFeatures(); @Override FromScratch setFeatures(final JsonObject featuresJsonObject); @Override FromScratch setFeatures(final String featuresJsonString); @Override FromScratch setLifecycle(@Nullable final ThingLifecycle lifecycle); @Override FromScratch setRevision(@Nullable final ThingRevision revision); @Override FromScratch setRevision(final long revisionNumber); @Override FromScratch setModified(@Nullable final Instant modified); @Override FromScratch setCreated(@Nullable final Instant created); @Override FromScratch setMetadata(@Nullable final Metadata metadata); @Override @Deprecated FromScratch setPermissions(final JsonObject accessControlListJsonObject); @Override @Deprecated FromScratch setPermissions(final String accessControlListJsonString); @Override @Deprecated FromScratch setPermissions(final AuthorizationSubject authorizationSubject, final Permissions permissions); @Override @Deprecated FromScratch setPermissions(final AuthorizationSubject authorizationSubject, final Permission permission,
            final Permission... furtherPermissions); @Override @Deprecated FromScratch setPermissions(final AclEntry aclEntry, final AclEntry... furtherAclEntries); @Override @Deprecated FromScratch setPermissions(final Iterable<AclEntry> aclEntries); @Override @Deprecated FromScratch removePermissionsOf(final AuthorizationSubject authorizationSubject); @Override @Deprecated FromScratch removeAllPermissions(); @Override FromScratch setPolicyId(@Nullable final PolicyId policyId); @Override FromScratch removePolicyId(); @Override @Deprecated FromScratch setId(@Nullable final String thingId); @Override FromScratch setId(@Nullable final ThingId thingId); @Override FromScratch setGeneratedId(); @Override Thing build();  }
@Test(expected = NullPointerException.class) public void tryToRemovePermissionsOfNullAuthorizationSubject() { underTest.removePermissionsOf(null); }