[TRUNK-2623] added an assertNotNull for the provider object in the testcase etc