@Test
public void testNewInstance_shouldGetBasicInformation()
throws Exception {
j.createWebClient().executeOnServer(new Callable<Object>() {
public Void call() throws Exception {
JSONObject form = new JSONObject();
form.put("project_content_type", "default");
form.put("project_recipient_list", "ashlux@gmail.com");
form.put("project_default_subject", "Make millions in Nigeria");
form.put("project_default_content", "Give me a $1000 check and I'll mail you back $5000!!!");
form.put("project_attachments", "");
form.put("project_presend_script", "");
form.put("project_replyto", "");
ExtendedEmailPublisherDescriptor descriptor = new ExtendedEmailPublisherDescriptor();
publisher = (ExtendedEmailPublisher) descriptor.newInstance(Stapler.getCurrentRequest(), form);
assertEquals("default", publisher.contentType);