@Test
public void testCategoryDefaultsToInstanceIfInstanceNotProxy() throws Exception {

    MyApi proxy = ProxyCatalog.createGuardingProxy(MyApi.class, new MyApi.MyApiImpl(), () -> true);
    assertThat(LoggingProxyBuilder.getCategory(MyApi.class, proxy)).isEqualTo(MyApi.class);
}