Created a test class to see the differences to java. See comments.