### Question:
ScreenCapturer { public static void captureScreen(final File file) { Rectangle rectangle = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()); captureScreenRect(file, rectangle); } @Inject  ScreenCapturer(@ModuleArchiveDir final Provider<File> moduleArchiveDirProvider,
			final Set<Class<? extends AbstractBaseEvent>> screenCaptureEvents, final Provider<MutableInt> counterProvider,
			@CaptureScreenOnError final boolean captureScreenOnError); static void captureScreen(final File file); static void captureScreenRect(final File file, final Rectangle rectangle); @Subscribe @AllowConcurrentEvents void handleEvent(final AbstractBaseEvent event); void captureAndArchiveScreen(final String screenshotName);  }### Answer:
@Test(groups = "excludeFromCI") public void testCaptureScreen() throws IOException { testFileOrDir = File.createTempFile("jFunkScreenCapture", ".png"); ScreenCapturer.captureScreen(testFileOrDir); assertThat(testFileOrDir).exists(); }