EList<String> names = new BasicEList<String>();
names.add("some");
EObject container = createMock(ActionElement.class);
ElementOptions options = createMock(ElementOptions.class);
ElementOption option = createMock(ElementOption.class);
QualifiedId qualifiedId = createMock(QualifiedId.class);
EClass eClass = createMock(EClass.class);
EStructuralFeature feature = createMock(EStructuralFeature.class);
Antlr4Validator validator = PowerMock.createPartialMock(Antlr4Validator.class, "warning");
expect(options.eContainer()).andReturn(container);
expect(options.getOptions()).andReturn(optionList);
expect(option.getQualifiedId()).andReturn(qualifiedId);
expect(qualifiedId.getName()).andReturn(names);
optionList.add(option);
expect(option.eClass()).andReturn(eClass);
expect(eClass.getEStructuralFeature("qualifiedId")).andReturn(feature);
PowerMock.expectPrivate(validator, "warning", "unknown option: some", option, feature);
Object[] mocks = {options, option, container, feature, eClass, qualifiedId };