AcmeProtocolException extends RuntimeException { public AcmeProtocolException(String msg) { super(msg); } AcmeProtocolException(String msg);  AcmeProtocolException(String msg, Throwable cause);   }
@Test public void testAcmeProtocolException() { String msg = "Bad content"; AcmeProtocolException ex = new AcmeProtocolException(msg); assertThat(ex, is(instanceOf(RuntimeException.class))); assertThat(ex.getMessage(), is(msg)); assertThat(ex.getCause(), nullValue()); }