    @Test
    public void messageClass_canMatchOnAnonymousClass() {

        SAMType instance = new SAMType() {
            @Override
            public void doSmt() {
            }
        };

        assertThat(Utils.messageClass(instance),
                CoreMatchers.<Class<?>>equalTo(SAMType.class));
    }