Some actor testing in java