@Test public void testEmptyListAsAnnotationValueDefault() { try { StringConcatenation _builder = new StringConcatenation(); _builder.append("annotation Foo {"); _builder.newLine(); _builder.append("\t"); _builder.append("String[] bar = #[]"); _builder.newLine(); _builder.append("}"); _builder.newLine(); String _string = _builder.toString(); XtendAnnotationType _annotationType = this.annotationType(_string); JvmAnnotationType _inferredAnnotationType = this._iXtendJvmAssociations.getInferredAnnotationType(_annotationType); EList<JvmMember> _members = _inferredAnnotationType.getMembers(); JvmMember _head = IterableExtensions.<JvmMember>head(_members); final JvmOperation inferred = ((JvmOperation) _head); JvmTypeReference _returnType = inferred.getReturnType(); String _identifier = _returnType.getIdentifier(); Assert.assertEquals("java.lang.String[]", _identifier); JvmAnnotationValue _defaultValue = inferred.getDefaultValue(); Assert.assertTrue((_defaultValue instanceof JvmStringAnnotationValue)); JvmAnnotationValue _defaultValue_1 = inferred.getDefaultValue(); EList<String> _values = ((JvmStringAnnotationValue) _defaultValue_1).getValues(); boolean _isEmpty = _values.isEmpty(); Assert.assertTrue(_isEmpty); } catch (Throwable _e) { throw Exceptions.sneakyThrow(_e); } }