Pulled the common MIME type header test code up into and abstract class.