@Test
public void testRequiredFileDestParameter() {

    try {
        Properties parameters = new Properties();
        parameters.setProperty(StorageConnector.FILES_HOME_PATH_PROPERTY, myFileDir.getAbsolutePath());
        connector = new FileStorageConnector(parameters);
        UnitOfWork transaction = mock(UnitOfWork.class);
        when(transaction.getState()).thenReturn(State.NOT_STARTED);
        parameters = new Properties();
        Exportable artifact = mock(Exportable.class);
        connector.write(artifact, transaction, parameters);
        fail("Should not allow null dest parameter");
    } catch (Exception ex) {
        // Expect to fail
    }
}