@Test(expected = IllegalArgumentException.class)
public void testWriteOperationReadOnly() throws Exception {

    TimeInfo timeInfo = new TimeInfo();
    timeInfo.setAbortAfterTimeout(true);
    timeInfo.setTimeout(5L);
    endpoint.doWriteAction("foo-route", WriteAction.STOP, timeInfo);
}