ImmutableResourceKey implements ResourceKey { @Override public String getResourceType() { return resourceType; } private  ImmutableResourceKey(final String resourceType, final JsonPointer resourcePath); static ImmutableResourceKey newInstance(final CharSequence type, final JsonPointer path); @Override String getResourceType(); @Override JsonPointer getResourcePath(); @Override int length(); @Override char charAt(final int index); @Override CharSequence subSequence(final int start, final int end); @Override boolean equals(final Object o); @Override int hashCode(); @Override @Nonnull String toString();  }
@Test public void getResourceTypeReturnsExpected() { assertThat(underTest.getResourceType()).isEqualTo(TestConstants.Policy.RESOURCE_TYPE); }