Since this method is currently only used in this test case, is it general enough to move out from this file?