### Question:
CayenneRuntimeException extends RuntimeException { public String getUnlabeledMessage() { return super.getMessage(); } CayenneRuntimeException();  CayenneRuntimeException(String messageFormat, Object... messageArgs);  CayenneRuntimeException(Throwable cause);  CayenneRuntimeException(String messageFormat, Throwable cause, Object... messageArgs); static String getExceptionLabel(); String getUnlabeledMessage(); @Override String getMessage();  }### Answer:
@Test public void testMessageFormatting1() { CayenneRuntimeException ex = new CayenneRuntimeException("x%sx%sx", "a", "b"); assertEquals("xaxbx", ex.getUnlabeledMessage()); }
@Test public void testMessageFormatting2() { Throwable cause = new Throwable(); CayenneRuntimeException ex = new CayenneRuntimeException("x%sx%sx", cause, "a", "b"); assertEquals("xaxbx", ex.getUnlabeledMessage()); }