@Override
    public boolean supports(Ref ref) {
        Assert.notNull(ref, "Subject ref must not be null.");
        GroupVersionKind groupVersionKind =
            new GroupVersionKind(ref.getGroup(), ref.getVersion(), ref.getKind());
        return GroupVersionKind.fromExtension(SinglePage.class).equals(groupVersionKind);
    }
@Test
    void supports() {
        SinglePage singlePage = new SinglePage();
        singlePage.setMetadata(new Metadata());
        singlePage.getMetadata().setName("test");
        boolean supports = singlePageCommentSubject.supports(Ref.of(singlePage));
        assertThat(supports).isTrue();

        FakeExtension fakeExtension = new FakeExtension();
        fakeExtension.setMetadata(new Metadata());
        fakeExtension.getMetadata().setName("test");
        supports = singlePageCommentSubject.supports(Ref.of(fakeExtension));
        assertThat(supports).isFalse();
    }