    @Test
    public void fromTypes() throws Exception {


        when(api.types()).thenReturn(Arrays.asList(t1, t2, t3));

        TypeDeclaration typeDeclaration = TypeFetchers.fromTypes().fetchType(api, "t1");

        assertSame(t1, typeDeclaration);
    }