This looks like the case where you're testing a matching contributor for the content type is found? Add another test method where there is another extension/contributor but the content type _doesn't_ match and verify that createExecutableExtension("class") never gets called on it.