@Test
public void testLANG1348() throws Exception {

    final Method method = Enum.class.getMethod("valueOf", Class.class, String.class);
    assertEquals("T extends java.lang.Enum<T>", TypeUtils.toString(method.getGenericReturnType()));
}