@Test(expected=RemoteAccessException.class)
public void test_without_user() throws RemoteException{
HttpInvokerProxyFactoryBean httpInvokerProxyFactoryBean = new HttpInvokerProxyFactoryBean();
httpInvokerProxyFactoryBean.setServiceInterface(CopperMonitoringService.class);
httpInvokerProxyFactoryBean.setServiceUrl(COPPER_MONITORING_SERVICE);;
httpInvokerProxyFactoryBean.setRemoteInvocationFactory(new SecureRemoteInvocationFactory("dgfdgdg"));
httpInvokerProxyFactoryBean.setHttpInvokerRequestExecutor(new CommonsHttpInvokerRequestExecutor());
httpInvokerProxyFactoryBean.afterPropertiesSet();
CopperMonitoringService copperMonitorService = (CopperMonitoringService)httpInvokerProxyFactoryBean.getObject();
assertNotNull(copperMonitorService);