Platform mockPlatform = Mockito.mock(Platform.class);
Mockito.when(mockPlatform.getPolicyManager()).thenReturn(mockPolicyManager);
Mockito.when(mockPlatform.getPersistenceProvider()).thenReturn(mockPersistenceProvider);
Mockito.when(mockPersistenceProvider.getReferencedComponents(Mockito.any(AbstractComponent.class))).thenReturn(Collections.<AbstractComponent>emptyList());
new PlatformAccess().setPlatform(mockPlatform);
new gov.nasa.arc.mct.platform.spi.PlatformAccess().setPlatform(mockPlatform);
}