Actually this method is only used in a test.