@Test
public void AsMessageUpdateActivity() {

    Activity activity = createActivity();
    activity.setType("messageUpdate");
    Activity result = activity.asMessageUpdateActivity();
    Assert.assertEquals(result.getType(), ActivityTypes.MESSAGE_UPDATE);
}