1 package com.lexicalscope.fluentreflection; 2 3 import static org.hamcrest.MatcherAssert.assertThat; 4 import static org.hamcrest.Matchers.equalTo; 5 6 import org.junit.Test; 7 8 public class TestConvertObjectToClass { 9 static class ExampleClass { 10 11 } 12 13 @Test 14 public void objectIsConvertedToClass() throws Exception { 15 assertThat(new ConvertObjectToClass().convert(new ExampleClass()), equalTo((Object) ExampleClass.class)); 16 } 17 }