Provisioner { String rot13(String text) { StringBuilder sb = new StringBuilder(text.length()); for (int i = 0; i < text.length(); i++) { char c = text.charAt(i); if ((c >= 'a' && c <= 'm') || (c >= 'A' && c <= 'M')) { sb.append((char) (c + 13)); } else if ((c >= 'n' && c <= 'z') || (c >= 'N' && c <= 'Z')) { sb.append((char) (c - 13)); } else { sb.append(c); } } return sb.toString(); } protected  Provisioner();  static final String TAG; }
@Test public void rot13() { Provisioner p = new Provisioner(); String result = p.rot13("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890{}\"':="); Assert.assertEquals("nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM1234567890{}\"':=", result); }