Convert ElasticCustomLocationTest from groovy to java

- because giving strange groovy compilation error in eclipse ide
jboss7 templating: Incorporate review comments