Replace a long-running integration test with a unit test.