@Test
public void toElementShouldReturnElement() throws Exception {

    // setup
    final TypeElement element = elements.getTypeElement(String.class.getCanonicalName());
    final TypeMirror mirror = element.asType();
    // exercise
    final TypeElement actual = TypeElements.toElement(mirror);
    // verify
    assertThat(actual)
            .isEqualTo(element);
}