java.lang.reflect.Field m2RepoServiceField = HttpPostHelper.class.getDeclaredField( "m2RepoService" );
m2RepoServiceField.setAccessible( true );
m2RepoServiceField.set( helper,
service );
FormData uploadItem = new FormData();
GAV gav = new GAV( "org.kie.guvnor",
"guvnor-m2repo-editor-backend",
"0.0.1-SNAPSHOT" );
uploadItem.setGav( gav );
FileItem file = new TestFileItem();
uploadItem.setFile( file );
assert ( helperMethod.invoke( helper,
uploadItem ).equals( "OK" ) );
}