@Test(expected = AssertionError.class)
public void canRunAndDidntGetException() {

    JVMUtil.runAndGetExecutionException( new Runnable() {
        @Override
        public void run() {
            ObjectBuffer borrowObject = new ObjectBuffer( new Kryo() );
            borrowObject.setKryo( new Kryo() );
        }
    } );
}