added a test java class