public SnippetInput(final Class<? extends Throwable> pExpected,final Object... parameters){
  if (parameters == null) {
    params=new Object[0];
  }
 else {
    params=new Object[parameters.length];
    System.arraycopy(parameters,0,params,0,parameters.length);
  }
  expected=pExpected;
}

public SnippetInput ( final Class < ? extends Throwable > pExpected , final Object ... parameters ) { if ( parameters == null ) { params = new Object [ 0 ] ; } else { params = new Object [ parameters . length ] ; System . arraycopy ( parameters , 0 , params , 0 , parameters . length ) ; } expected = pExpected ; }
creates an instance with the specified excepted exception and parameters .
