protected function getServerNodeWithMockedConfiguration($value, $key = null, $methodName = 'getParam')
{
// create a mock configuration instance
$mockNode = $this->getMock('AppserverIo\\Appserver\\Core\\Api\\Node\\ServerNode', array($methodName));
$mockMethod = $mockNode->expects($this->once())->method($methodName)->will($this->returnValue($value));
// check if we've a param
if ($key != null) {
$mockMethod->with($this->equalTo($key));
}
// initialize the server node
return new ServerNodeConfiguration($mockNode);
}