@Test
public void AsEventActivity() {

    Activity activity = createActivity();
    activity.setType("event");
    Activity result = activity.asEventActivity();
    Assert.assertEquals(result.getType(), ActivityTypes.EVENT);
}