Test Java class main