package dslab.rmi; import dslab.crypto.RSA; import dslab.util.ComponentId; import org.junit.Test; import static org.junit.Assert.assertEquals; public class RSATest { @Test public void rsaDecryptionShouldInverseEncryption(){ var rsa = new RSA(new ComponentId("mailbox-earth-planet")); assertEquals("hello",rsa.decrypt(rsa.encrypt("hello"))); } }