1   package com.lexicalscope.fluentreflection;
2   
3   import static com.lexicalscope.fluentreflection.ReflectionMatchers.reflectingOnConstructor;
4   import static org.hamcrest.MatcherAssert.assertThat;
5   
6   import org.junit.Test;
7   
8   public class TestConvertConstructorToReflectedConstructor {
9       static class ExampleClass {
10          ExampleClass() {}
11      }
12  
13      @Test public void constructorIsConvertedToReflectedConstructor() throws Exception {
14          assertThat(new ConvertConstructorToReflectedConstructor<ExampleClass>(
15                  new ReflectedTypeFactoryImpl(),
16                  ExampleClass.class)
17                  .convert(ExampleClass.class
18                          .getDeclaredConstructor()), reflectingOnConstructor(ExampleClass.class
19                  .getDeclaredConstructor()));
20      }
21  }