Abstract class to allow simple test cases for DOM modules.