private I2PSession createSession() {

try {</BUG>
I2PClient client = I2PClientFactory.createClient();
ByteArrayOutputStream baos = new ByteArrayOutputStream(512);
<BUG>Destination dest = client.createDestination(baos);
I2PSession sess = client.createSession(new ByteArrayInputStream(baos.toByteArray()), new Properties());</BUG>
sess.connect();
return sess;
<BUG>} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException("b0rk b0rk b0rk");</BUG>
}

boolean ponged = mgr.ping(session.getMyDestination(), 2*1000);
assertTrue(ponged);
}
}
private I2PSession createSession() throws Exception {
I2PClient client = I2PClientFactory.createClient();
ByteArrayOutputStream baos = new ByteArrayOutputStream(512);
client.createDestination(baos);
I2PSession sess = client.createSession(new ByteArrayInputStream(baos.toByteArray()), new Properties());
sess.connect();
return sess;
