@Test
public void testGetSnippet() throws Exception
{

    String snippetId = "test-snippet-id";
    
    Mockito.doReturn(
            "{'id': 'test-snippet-id', 'name': 'test-snippet', 'body': '<h1>test header</h1>', 'created': 1414091325}"
    ).when(sendwithusAPI).makeURLRequest(
            Mockito.endsWith("snippets/"+snippetId), Mockito.eq("GET")
    );
    Snippet snippet = sendwithusAPI.getSnippet(snippetId);
    assertNotNull(snippet);
    assertTrue(snippet instanceof Snippet);
}