### Question:
NetworkConfigurationPriorityVariableAccessor extends VariableAccessor { @Override public List<ReportDatum> generateReportData(String componentName) { Component component = new Component() .withName(new CiString.CiString50(componentName)); VariableAttribute variableAttribute = new VariableAttribute() .withValue(new CiString.CiString1000(String.valueOf(getStationStore().getNetworkConfigurationPriority()))) .withPersistence(false) .withConstant(false); VariableCharacteristics variableCharacteristics = new VariableCharacteristics() .withDataType(SEQUENCE_LIST) .withSupportsMonitoring(false); ReportDatum reportDatum = new ReportDatum() .withComponent(component) .withVariable(new Variable().withName(new CiString.CiString50(NAME))) .withVariableCharacteristics(variableCharacteristics) .withVariableAttribute(singletonList(variableAttribute)); return singletonList(reportDatum); } NetworkConfigurationPriorityVariableAccessor(Station station, StationStore stationStore); @Override String getVariableName(); @Override Map<AttributeType, VariableGetter> getVariableGetters(); @Override Map<AttributeType, VariableSetter> getVariableSetters(); @Override Map<AttributeType, SetVariableValidator> getVariableValidators(); @Override List<ReportDatum> generateReportData(String componentName); @Override boolean isMutable(); static final String NAME; }### Answer:
@Test void generateReportData() { when(stationStore.getNetworkConfigurationPriority()).thenReturn(PRIORITY_LIST); final List<ReportDatum> reportData = variableAccessor.generateReportData(COMM_COMPONENT_NAME); assertThat(NETWORK_CONFIGURATION_PRIORITY_ATTRIBUTE_LIST).isEqualTo(reportData.get(0).getVariableAttribute().get(0).getValue()); verify(stationStore).getNetworkConfigurationPriority(); verifyZeroInteractions(station); }