@Test public void testGetValueAttribute() { String expectedValue = getRandomChars(20); // expect getting attribute value expect(inputElementMock.getValue()).andReturn(expectedValue); // perform test replayAll(); String actualValue = adapter.getValueAttribute(); verifyAll(); assertEquals(expectedValue, actualValue); }