@Override
    @PublicAPI(usage = ACCESS)
    public String getName() {
        return name;
    }
@Test
    public void predicate_declaredIn() {
        JavaCall<?> call = simulateCall().from(Origin.class, "call").to(Target.class, "called");

        assertThat(declaredIn(Target.class))
                .accepts(call.getTarget())
                .hasDescription("declared in " + Target.class.getName());
        assertThat(declaredIn(Target.class.getName()))
                .accepts(call.getTarget())
                .hasDescription("declared in " + Target.class.getName());
        assertThat(declaredIn(equivalentTo(Target.class).as("custom")))
                .accepts(call.getTarget())
                .hasDescription("declared in custom");

        assertThat(declaredIn(Origin.class))
                .rejects(call.getTarget());
        assertThat(declaredIn(Origin.class.getName()))
                .rejects(call.getTarget());
        assertThat(declaredIn(equivalentTo(Origin.class)))
                .rejects(call.getTarget());
    }