Required to override this in unit tests.