### Question:
GrantResource implements IResource { public static GrantResource fromResource(IResource resource) { return new GrantResource(checkNotNull(resource)); } private  GrantResource(IResource wrappedResource); static GrantResource fromResource(IResource resource); static GrantResource root(); @Override String getName(); @Override IResource getParent(); @Override boolean hasParent(); @Override boolean exists(); @Override Set<Permission> applicablePermissions(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testWrappingNullResourceThrows() { assertThatExceptionOfType(NullPointerException.class) .isThrownBy(() -> GrantResource.fromResource(null)); }