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