"}\n" +
"double thisIsAGoodVar = 0;\n" +
"method();\n";
try {
JavaAnalysisResult analysis = analyzer.analyzeBlock( codeBlock, new BoundIdentifiers( new HashMap<String, Class<?>>(), new HashMap<String, Class<?>>() ) );
Set<String> vars = analysis.getLocalVariables();
assertEquals( 3, vars.size() );
assertTrue( vars.contains( "x" ));
assertTrue( vars.contains( "cheese" ));
assertTrue( vars.contains( "thisIsAGoodVar" ));