Can you remove any API that isn't used by the test? Even public fields are OK for the sake of the test - just reduce the amount of imported code to the minimum reproduceable/understandable example