@Test
public void AsTraceActivity() {

    Activity activity = createActivity();
    activity.setType("trace");
    Activity result = activity.asTraceActivity();
    Assert.assertEquals(result.getType(), ActivityTypes.TRACE);
}