void (ImplementationViewComponent component, String[] expects) { try { final String[] visibleFiles = component.getVisibleFiles(); Assert.assertArrayEquals(Arrays.toString(visibleFiles), expects, visibleFiles); } finally { component.removeNotify(); } }