@Test
public void testGetEntitiesCount() {

  Smil smil = new SmilImpl();
  SmilResponse response = new SmilResponseImpl(smil);
  assertSame(0, response.getEntitiesCount());
  response = new SmilResponseImpl(smil, smil.getBody());
  assertSame(1, response.getEntitiesCount());
  response = new SmilResponseImpl(smil, new SmilObject[]{smil.getHead(), smil.getBody()});
  assertSame(2, response.getEntitiesCount());
}