Program program = createAndParse(str);
ExpressionStatement statement = (ExpressionStatement) program
.statements().get(3);
Assignment assignment = (Assignment) statement.getExpression();
FieldAccess fieldAccess = (FieldAccess) assignment.getRightHandSide();
IVariableBinding variableBinding = fieldAccess.resolveFieldBinding();
Assert.assertTrue(variableBinding.isField() == true);
Assert.assertTrue(variableBinding.getName().equals("$anotherOne"));
Assert.assertTrue(variableBinding.getKind() == IBinding.VARIABLE);
}