public static List<TransferAction> forTransfer(final Transfer.Type t) {
        switch(t) {
            case sync:
                return Arrays.asList(
                        TransferAction.download,
                        TransferAction.upload,
                        TransferAction.mirror
                );
            case copy:
                return Arrays.asList(
                        TransferAction.overwrite,
                        TransferAction.comparison
                );
            default:
                return Arrays.asList(
                        TransferAction.resume,
                        TransferAction.overwrite,
                        TransferAction.rename,
                        TransferAction.renameexisting,
                        TransferAction.skip,
                        TransferAction.comparison
                );
        }
    }
@Test
    public void testActionsForCopy() {
        assertEquals(2, (TransferAction.forTransfer(Transfer.Type.copy).size()));
        assertTrue(TransferAction.forTransfer(Transfer.Type.copy).contains(TransferAction.comparison));
        assertTrue(TransferAction.forTransfer(Transfer.Type.copy).contains(TransferAction.overwrite));
    }