// Path: src/main/java/com/asana/models/Task.java
// public class Task extends ResourceWithSubtype {
//     public static class Membership {
//         public Project project;
//         public Task section;
//     }
// 
//     public User assignee;
// 
//     @SerializedName("assignee_status")
//     public String assigneeStatus;
// 
//     @SerializedName("created_at")
//     public DateTime createdAt;
// 
//     public boolean completed;
// 
//     @SerializedName("completed_at")
//     public DateTime completedAt;
// 
//     @SerializedName("custom_fields")
//     public Collection<CustomField> customFields;
// 
//     public Collection<Task> dependencies;
//     public Collection<Task> dependents;
// 
//     @SerializedName("due_on")
//     public DateTime dueOn;
//     @SerializedName("due_at")
//     public DateTime dueAt;
// 
//     public External external;
// 
//     public Collection<User> followers;
// 
//     @SerializedName("is_rendered_as_separator")
//     public boolean isRenderedAsSeparator;
// 
//     public boolean liked;
//     public Collection<Like> likes;
// 
//     public Collection<Membership> memberships;
// 
//     @SerializedName("modified_at")
//     public DateTime modifiedAt;
// 
//     public String name;
// 
//     public String notes;
//     @SerializedName("html_notes")
//     public String htmlNotes;
// 
//     @SerializedName("num_likes")
//     public int numLikes;
// 
//     @SerializedName("num_subtasks")
//     public int numSubtasks;
// 
//     public Task parent;
// 
//     public Collection<Project> projects;
// 
//     @SerializedName("start_on")
//     public DateTime startOn;
// 
//     public Workspace workspace;
// 
//     public Collection<Tag> tags;
// 
//     public boolean hearted;
//     public Collection<Heart> hearts;
//     @SerializedName("num_hearts")
//     public int numHearts;
// 
//     public Collection<Attachment> attachments;
// }


import com.asana.models.Task;
import com.google.api.client.util.DateTime;
import com.google.common.io.Resources;
import org.apache.commons.io.IOUtils;
import org.junit.Test;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Calendar;
import java.util.Date;
import static org.junit.Assert.assertEquals;
package com.asana;




public class ResourcesTest extends AsanaTest {
    @Test
    public void testAttachmentsFindById() throws IOException {
        dispatcher.registerResponse("GET", "http://app/attachments/1").code(200).content("{ \"data\": { \"name\": \"name\" }}");
        assertEquals("name", client.attachments.findById("1").execute().name);
    }

    @Test
    public void testJobsFindById() throws IOException {
        dispatcher.registerResponse("GET", "http://app/jobs/1").code(200).content("{ \"data\": { \"gid\": \"1\" }}");
        assertEquals("1", client.jobs.findById("1").execute().gid);
    }

// Path: src/main/java/com/asana/models/Task.java
// public class Task extends ResourceWithSubtype {
//     public static class Membership {
//         public Project project;
//         public Task section;
//     }
// 
//     public User assignee;
// 
//     @SerializedName("assignee_status")
//     public String assigneeStatus;
// 
//     @SerializedName("created_at")
//     public DateTime createdAt;
// 
//     public boolean completed;
// 
//     @SerializedName("completed_at")
//     public DateTime completedAt;
// 
//     @SerializedName("custom_fields")
//     public Collection<CustomField> customFields;
// 
//     public Collection<Task> dependencies;
//     public Collection<Task> dependents;
// 
//     @SerializedName("due_on")
//     public DateTime dueOn;
//     @SerializedName("due_at")
//     public DateTime dueAt;
// 
//     public External external;
// 
//     public Collection<User> followers;
// 
//     @SerializedName("is_rendered_as_separator")
//     public boolean isRenderedAsSeparator;
// 
//     public boolean liked;
//     public Collection<Like> likes;
// 
//     public Collection<Membership> memberships;
// 
//     @SerializedName("modified_at")
//     public DateTime modifiedAt;
// 
//     public String name;
// 
//     public String notes;
//     @SerializedName("html_notes")
//     public String htmlNotes;
// 
//     @SerializedName("num_likes")
//     public int numLikes;
// 
//     @SerializedName("num_subtasks")
//     public int numSubtasks;
// 
//     public Task parent;
// 
//     public Collection<Project> projects;
// 
//     @SerializedName("start_on")
//     public DateTime startOn;
// 
//     public Workspace workspace;
// 
//     public Collection<Tag> tags;
// 
//     public boolean hearted;
//     public Collection<Heart> hearts;
//     @SerializedName("num_hearts")
//     public int numHearts;
// 
//     public Collection<Attachment> attachments;
// }


// Path: src/test/java/com/asana/ResourcesTest.java
import com.asana.models.Task;
import com.google.api.client.util.DateTime;
import com.google.common.io.Resources;
import org.apache.commons.io.IOUtils;
import org.junit.Test;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Calendar;
import java.util.Date;
import static org.junit.Assert.assertEquals;

package com.asana;




public class ResourcesTest extends AsanaTest {
    @Test
    public void testAttachmentsFindById() throws IOException {
        dispatcher.registerResponse("GET", "http://app/attachments/1").code(200).content("{ \"data\": { \"name\": \"name\" }}");
        assertEquals("name", client.attachments.findById("1").execute().name);
    }

    @Test
    public void testJobsFindById() throws IOException {
        dispatcher.registerResponse("GET", "http://app/jobs/1").code(200).content("{ \"data\": { \"gid\": \"1\" }}");
        assertEquals("1", client.jobs.findById("1").execute().gid);
    }

    @Test