* Test the framework upgrade procedure, when all the connections and
* jobs using the old connector are invalid for the new connector
*/
@Test
public void testFrameworkUpgradeWithInvalidConnectionsAndJobs() {
MFramework newFramework = framework();
when(validator.validateConnection(any(MConnection.class))).thenReturn(invalid);
when(validator.validateJob(any(MJob.Type.class), any(MJob.class))).thenReturn(invalid);
when(frameworkMgr.getValidator()).thenReturn(validator);
when(frameworkMgr.getMetadataUpgrader()).thenReturn(upgrader);