### Question:
ExecutionException extends RuntimeException { public boolean hasStackTrace () { return mHasStackTrace; } ExecutionException(String errorMessage);  ExecutionException(String errorMessage, String parameter);  ExecutionException(String errorMessage, String parameter1, String parameter2);  ExecutionException(String errorMessage, String parameter1, String parameter2, String parameter3);  ExecutionException(String errorMessage, String parameter1, String parameter2, String parameter3, String parameter4);  ExecutionException(String errorMessage, int parameter);  ExecutionException(String errorMessage, String parameter1, int parameter2);  ExecutionException(String errorMessage, String parameter1, int parameter2, int parameter3);  ExecutionException(String errorMessage, boolean parameter1, boolean parameter2);  ExecutionException(String errorMessage, StackTraceElement[] stackTrace); boolean hasStackTrace();  }### Answer:
@Test public void testHasStackTraceWithStackTrace () { ExecutionException ee = new ExecutionException (MESSAGE, new RuntimeException ().getStackTrace ()); assertEquals (MESSAGE, ee.getMessage ()); assertTrue (ee.hasStackTrace ()); }
@Test public void testHasStackTraceWithoutStackTrace () { ExecutionException ee = new ExecutionException (MESSAGE); assertEquals (MESSAGE, ee.getMessage ()); assertFalse (ee.hasStackTrace ()); }