if (GraphicsEnvironment.isHeadless()) {
return;
}
MockitoAnnotations.initMocks(this);
(new PlatformAccess()).setPlatform(mockPlatform);
when(mockPlatform.getPolicyManager()).thenReturn(mockPolicyManager);
when(mockPolicyManager.execute(Mockito.anyString(), Mockito.any(PolicyContext.class))).thenReturn(new ExecutionResult(null,true,""));
when(canvasManifestation.getInfo()).thenReturn(new ViewInfo(TestView.class,"",ViewType.CENTER));
when(canvasManifestation.getComponents()).thenReturn(new Component[] {});
configureManifestation(canvasManifestation);