/**
* {@link java.rmi.ConnectException#ConnectException(java.lang.String, java.lang.Exception)}.
*/
public void testConnectExceptionStringException() {
NullPointerException npe = new NullPointerException();
ConnectException e = new ConnectException("fixture", npe);
assertTrue(e.getMessage().indexOf("fixture") > -1);
assertSame(npe, e.getCause());
assertSame(npe, e.detail);
}