@Test
public void testGetViewInstanceSubject() throws Exception {

  EventImpl event = getEvent("MyEvent", Collections.<String, String>emptyMap(), view_xml);
  Assert.assertNull(event.getViewInstanceSubject());
  ViewInstanceEntity viewInstanceEntity = ViewInstanceEntityTest.getViewInstanceEntity();
  event = getEvent("MyEvent", Collections.<String, String>emptyMap(), viewInstanceEntity);
  Assert.assertEquals(viewInstanceEntity, event.getViewInstanceSubject());
}