Cache<DescriptorKey, DefDescriptor<? extends Definition>> cache =
Aura.getCachingService().getDefDescriptorByNameCache();
cache.put(dk, JavaValueDefDescMocked);
//jvd doesn't matter that much for triggering QFE, as we only used it as the Object param
JavaValueDef jvd = new JavaValueDef("tvdQFE", JavaValueDefDesc, null);
Map<String, Object> args = new HashMap<>();
args.put("keya", jvd);
ControllerDef controller = getJavaController("java://org.auraframework.impl.java.controller.TestControllerOnlyForJavaControllerTest");
//we actually catch the QFE in JavaAction.getArgs(), then wrap it up with AuraUnhandledException