added test java class