### Question:
OracleAttributesReader { void readAlterAttributes(Map<String, Attribute> map, OracleUserAttributes.Builder caAttributes) { readAuthAttributes(map, caAttributes, UpdateOp.class); readRestAttributes(map, caAttributes, UpdateOp.class); } OracleAttributesReader(ConnectorMessages messages);   }### Answer:
@Test public void testReadAlterAttributes() { final OracleAttributesReader reader = new OracleAttributesReader(TestHelpers.createDummyMessages()); OracleUserAttributes.Builder caAttributes = new OracleUserAttributes.Builder(); caAttributes.setUserName("testUser"); Set<Attribute> attributes = new HashSet<Attribute>(); attributes.add(AttributeBuilder.build(OracleConstants.ORACLE_AUTHENTICATION_ATTR_NAME, OracleConstants.ORACLE_AUTH_LOCAL)); attributes.add(AttributeBuilder.buildPassword("myPassword".toCharArray())); reader.readAlterAttributes(AttributeUtil.toMap(attributes), caAttributes); Assert.assertEquals(OracleAuthentication.LOCAL, caAttributes.getAuth()); AssertJUnit.assertNotNull("Password must not be null", caAttributes.getPassword()); caAttributes = new OracleUserAttributes.Builder(); caAttributes.setUserName("testUser"); attributes.clear(); attributes.add(AttributeBuilder.buildPasswordExpired(true)); reader.readAlterAttributes(AttributeUtil.toMap(attributes), caAttributes); AssertJUnit.assertNull("Password must be null", caAttributes.getPassword()); attributes = new HashSet<Attribute>(); attributes.add(AttributeBuilder.build(OracleConstants.ORACLE_AUTHENTICATION_ATTR_NAME)); attributes.add(AttributeBuilder.buildPassword("myPassword".toCharArray())); try { reader.readAlterAttributes(AttributeUtil.toMap(attributes), caAttributes); Assert.fail("Create attributes must fail for null authentication"); } catch (IllegalArgumentException e) { } }