@Test
public void testDeleteSnippet() throws Exception
{

    String snippetId = "test-snippet-id";
    
    Mockito.doReturn(
            "{'success': true, 'status': 'OK'}"
    ).when(sendwithusAPI).makeURLRequest(
            Mockito.endsWith("snippets/"+snippetId), Mockito.eq("DELETE")
    );
    APIReceipt receipt = sendwithusAPI.deleteSnippet(snippetId);
    assertSuccessfulAPIReceipt(receipt);
    assertTrue(receipt instanceof APIReceipt);
}