{
DebugContext context = stateManager.expectEvent(EXPECT_SUSPENDED_VISITOR);
{
// Check cache dropping.
JsObject root = evaluateSync(context.getGlobalEvaluateContext(),
"(debug_value_1 = {a:2})").getValue().asObject();
if (root == null) {
throw new RuntimeException();
}
String aValue;
aValue = root.getProperty("a").getValue().getValueString();
if (!"2".equals(aValue)) {
throw new SmokeException();
}
evaluateSync(context.getGlobalEvaluateContext(), "debug_value_1.a = 3");
root.getRemoteValueMapping().clearCaches();
aValue = root.getProperty("a").getValue().getValueString();
if (!"3".equals(aValue)) {
throw new SmokeException();
}
}