//EasyMock.expect(_testimpl.getClientId(EasyMock.same(facesContext))).andReturn("xxxId");
_contextCallback.invokeContextCallback(EasyMock.same(facesContext), EasyMock.same(testimpl));
EasyMock.expectLastCall().andThrow(new RuntimeException());
_mocksControl.replay();
org.apache.myfaces.Assert.assertException(FacesException.class, new TestRunner()
{
public void run() throws Throwable
{
Assert.assertTrue(testimpl.invokeOnComponent(facesContext, "xxxId", _contextCallback));
}