when(mockConfiguredObject.getAttribute(attributeName)).thenReturn(attributeValue);
}
private Statistics createMockStatistics(String statName, int statValue)
{
Statistics mockStatistics = mock(Statistics.class);
when(mockStatistics.getStatisticNames()).thenReturn(Arrays.asList(statName));
when(mockStatistics.getStatistic(statName)).thenReturn(statValue);
return mockStatistics;
}