Test java classes for RMI