def METHOD_NAME(self) -> None:
    x = crash_test_dummy.XComponent()
    x.setAdapter(crash_test_dummy.IX, crash_test_dummy.XA)
    x.getComponent(crash_test_dummy.IX)
    rebuild.rebuild(crash_test_dummy, 0)
    newComponent = x.getComponent(crash_test_dummy.IX)
    newComponent.method()
    self.assertEqual(newComponent.__class__, crash_test_dummy.XA)
    # Test that a duplicate registerAdapter is not allowed
    from twisted.python import components
    self.assertRaises(
        ValueError,
        components.registerAdapter,
        crash_test_dummy.XA,
        crash_test_dummy.X,
        crash_test_dummy.IX,
    )