@Test
public void test_isInvalidSessionId_Throwable() {

    Assert.assertFalse("Should not be an exception msg", ExceptionUtil.isInvalidSessionId(new RuntimeException("hello world")));
    Assert.assertTrue("Should be an exception msg", ExceptionUtil.isInvalidSessionId(new RuntimeException(" foo " + ExceptionUtil.INVALID_SESSION_ID + " bar ")));
    Assert.assertTrue("Should be an exception msg", ExceptionUtil.isInvalidSessionId(new RuntimeException(" foo " + ExceptionUtil.INVALID_SESSION_ID)));
    Assert.assertTrue("Should be an exception msg", ExceptionUtil.isInvalidSessionId(new RuntimeException(ExceptionUtil.INVALID_SESSION_ID + "bar")));
    Assert.assertTrue("Should be an exception msg", ExceptionUtil.isInvalidSessionId(new RuntimeException(ExceptionUtil.INVALID_SESSION_ID)));
    Assert.assertFalse("Should not be an exception msg", ExceptionUtil.isInvalidSessionId(new InvocationTargetException(new RuntimeException("hello world"))));
    Assert.assertTrue("Should be an exception msg", ExceptionUtil.isInvalidSessionId(new InvocationTargetException(new RuntimeException(" foo " + ExceptionUtil.INVALID_SESSION_ID + " bar "))));
    Assert.assertTrue("Should be an exception msg", ExceptionUtil.isInvalidSessionId(new InvocationTargetException(new RuntimeException(" foo " + ExceptionUtil.INVALID_SESSION_ID))));
    Assert.assertTrue("Should be an exception msg", ExceptionUtil.isInvalidSessionId(new InvocationTargetException(new RuntimeException(ExceptionUtil.INVALID_SESSION_ID + "bar"))));
    Assert.assertTrue("Should be an exception msg", ExceptionUtil.isInvalidSessionId(new InvocationTargetException(new RuntimeException(ExceptionUtil.INVALID_SESSION_ID))));
}