@Test(expected = RemoteException.class)
public void testGetDeploymentEJBRequestRemoteException() throws RemoteException {

    // 0 causes DeploymentIndex to move further
    final EJBMetaDataImpl ejbMetadata = new EJBMetaDataImpl(null, null, null, null, null, 0, InterfaceType.BUSINESS_REMOTE, null, null);
    final EJBRequest request = new EJBRequest(null, ejbMetadata, method, null, null);
    deploymentIndex.getDeployment(request);
}