@Test
public void testCreateUser() throws Exception {
UserRoleDaoMock userRoleDao = PentahoSystem.get( UserRoleDaoMock.class, USER_ROLE_DAO_TXN, null );
IUserRoleWebService service = getUserRoleWebService();
ProxyPentahoUser user = new ProxyPentahoUser();
user.setName( "test" );
user.setEnabled( true );
user.setPassword( "test" );
user.setDescription( "testing" );
try {
service.createUser( user );
Assert.fail();
} catch ( UserRoleException e ) {
Assert.assertTrue( "ERROR_0001 not found in " + e.getMessage(), e.getMessage().indexOf( "ERROR_0001" ) >= 0 );