add Java Class test case, Scala Map iteration Java compabible (values.iterator)