added junit test case for java spark web class