@Test
public void AsTypingActivity() {

    Activity activity = createActivity();
    activity.setType("typing");
    Activity result = activity.asTypingActivity();
    Assert.assertEquals(result.getType(), ActivityTypes.TYPING);
}