You might also use the TestTransport and its SwitchableLoggedBehavior to override the low level associate call and fail the test (associateBehavior allows a become() like operation).