String (Test test) { final String toString = test.toString(); final int braceIdx = toString.indexOf("("); return braceIdx > 0 && toString.endsWith(")") ? toString.substring(braceIdx + 1, toString.length() - 1) : null; }