@Test
public void AsEndOfConversationActivity() {

    Activity activity = createActivity();
    activity.setType("endOfConversation");
    Activity result = activity.asEndOfConversationActivity();
    Assert.assertEquals(result.getType(), ActivityTypes.END_OF_CONVERSATION);
}