Fixed Java test to use correct paths to resources.