try
{
String filename = "";
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http:/"+"/sap.com/xi/XI/System/File","FileName");
filename = conf.get(key);
return filename;
}
catch(Exception e)
{
String exception = e.toString();
return exception;
}
But you won't be able to test the dynamic file name here unless you do E2E