@Test
public void doAction() throws PersistenceException {

    when(valueMap.remove(ATTR_OLD)).thenReturn(VAL1);
    RenameProperty action = new RenameProperty(ATTR_OLD, ATTR_NEW);
    action.doAction(resource);
    verify(valueMap, times(1)).remove(ATTR_OLD);
    verify(valueMap, times(1)).put(ATTR_NEW, VAL1);
}