@Test
public void fromTypeVariable() {

    TypeVariable<?> typeVariable = MutableLocatable.class.getTypeParameters()[0];
    MutableTypeParameterElement actual = MutableTypeParameterElement.fromTypeVariable(typeVariable);
    MutableTypeParameterElement expected = new MutableTypeParameterElement()
        .setSimpleName(typeVariable.getName())
        .setBounds(Collections.<MutableTypeMirror<?>>singletonList(
            new MutableDeclaredType()
                .setDeclaration(MutableLocatable.class.getName())
                .setTypeArguments(Collections.<MutableTypeMirror<?>>singletonList(
                    new MutableTypeVariable()
                        .setFormalTypeParameter(typeVariable.getName())
                ))
        ));
    Assert.assertEquals(actual, expected);
}