Converting EntityIsOfTypeTest to unit test.