Java testing examples.