Fix quality flaw by improving coverage on DefaultJavaResourceLocator