@Test
void specialize_classes() {

    var declared = mock(DeclaredType.class);
    when(types.getDeclaredType(element, mirror)).thenReturn(declared);
    
    TypeElement string = when(mock(TypeElement.class).asType()).thenReturn(mirror).getMock();
    when(elements.getTypeElement(String.class.getName())).thenReturn(string);
    
    assertEquals(declared, typing.specialize(int.class, String.class));
}