@Test
public void testGetAttributeValue() throws Exception {

    String attributeName = "attribute_name";
    expect(mockSanitizer.urlDecode(attributeName, ENCODING)).andReturn(attributeName);
    Object value = new Object();
    String valueString = "some_string";
    expect(mockMBeanServer.getAttribute(mockObjectName, attributeName)).andReturn(value);
    expect(mockSanitizer.escapeValue(value)).andReturn(valueString);
    replay(mockMBeanServer, mockSanitizer, mockObjectName);
    String attributeValue = webMBeanAdapter.getAttributeValue(attributeName);
    assertEquals(valueString, attributeValue);
    verify(mockMBeanServer, mockSanitizer, mockObjectName);
}