Java testing utilities