This test fails in setAttibute to a BasicModel entity:
@Test @InSequence(1) @Transactional public void testIdentityManagerUserCreation() throws Exception { /* Bad userName */ String userName = "testusername"; String userLocaleCode = "ca-es"; User newUser = new User(userName); newUser.setEmail("test@test.com"); identityManager.add(newUser); Password password = new Password("password"); this.identityManager.updateCredential(newUser, password); User user = BasicModel.getUser(identityManager, userName); newUser.setAttribute(new Attribute<String>(Constants.ATTRIBUTE_NAME_LOCALE_CODE, "ca-es")); identityManager.update(newUser); user = BasicModel.getUser(identityManager, userName); Assert.assertNotNull(user); Attribute<String> localeCodeAttribute = user.getAttribute(Constants.ATTRIBUTE_NAME_LOCALE_CODE); Assert.assertNotNull(localeCodeAttribute); Assert.assertEquals(localeCodeAttribute.getValue(), userLocaleCode); }