'``flocker.testtools.TestCase.failureResultOf`` works like
``twisted.trial.unittest.SynchronousTestCase.failureResultOf``.'

def test_failureResultOf(self):

    self.assertThat(self.failureResultOf(fail(CustomException()), CustomException), IsInstance(Failure))
