    @Test
    public void testFail() throws Exception
    {

        final long initialTS = System.currentTimeMillis();

        IOTimeoutAction action = new IOTimeoutAction(300)
        {
            @Override
            public boolean condition() throws IOException
            {
                return System.currentTimeMillis() - initialTS > 500;
            }
        };

        try
        {
            action.execute();
            fail();
        }
        catch (IOException e)
        {
            // Ok
        }
    }