@Test
public void testCreateSnippet() throws Exception
{

    Mockito.doReturn(
            "{'success': true, 'status': 'OK'}"
    ).when(sendwithusAPI).makeURLRequest(
            Mockito.endsWith("snippets"), Mockito.eq("POST"), Mockito.anyMap()
    );
    
    String name = "test-snippet";
    String body = "<h1>test header</h1>";
    SnippetReceipt receipt = sendwithusAPI.createSnippet(name, body);
    assertSuccessfulAPIReceipt(receipt);
    assertTrue(receipt instanceof SnippetReceipt);
}