@Test
void getRepeatedFieldType_enum() {

    Proto proto = new Proto();
    proto.setPackage(new Package(proto, "package"));
    Enum anEnum = new Enum(proto);
    anEnum.setName("Enum");
    anEnum.setProto(proto);
    anEnum.addConstant(createEnumConstant(anEnum, "A", 0));
    Field field = new Field(null);
    field.setModifier(FieldModifier.REPEATED);
    field.setType(anEnum);
    assertEquals("java.util.List<package.Enum>", MessageFieldUtil.getRepeatedFieldType(field));
}