### Question:
Delay implements TransactionParticipant, Configurable { public int prepare(long id, Serializable context) { sleep (prepareDelay); return PREPARED; }  int prepare(long id, Serializable context); void commit(long id, Serializable context); void abort(long id, Serializable context); void setConfiguration(Configuration cfg);  }### Answer:
@Test public void testPrepare() { assertThat(delay.prepare(0L, context), is(PREPARED)); }