File outFile = getOutput(test.getName(), fe);
Method method = fe.getClass().getDeclaredMethod("createFormatter", new Class[] {ClassLoader.class});
method.setAccessible(true);
JUnitResultFormatter formatter = (JUnitResultFormatter) method.invoke(fe, new Object[] {getClass().getClassLoader()});
if (outFile != null && formatter != null )
{
try
{
OutputStream out = new FileOutputStream(outFile);