@Test
public void copySingleFileSkipFallbacksToFail() throws IOException {

    Map<String, File> files = new HashMap<String, File>();
    files.put("newName", folder.newFile());
    File outFile = mock(File.class);
    when(outFile.isFile()).thenReturn(Boolean.TRUE);
    when(outFile.exists()).thenReturn(Boolean.TRUE);
    try {
        OutputWriterHelper.moveToFile(files, outFile, ExistingOutputPolicy.SKIP, context);
        fail("Exception expected");
    } catch (IOException e) {
        assertTrue("Different exception expected.", e.getMessage().startsWith("Unable to write"));
    }
}