@Test
public void AsMessageDeleteActivity() {

    Activity activity = createActivity();
    activity.setType("messageDelete");
    Activity result = activity.asMessageDeleteActivity();
    Assert.assertEquals(result.getType(), ActivityTypes.MESSAGE_DELETE);
}