### Question:
BasicAuthPasswordVariableAccessor extends VariableAccessor { @Override public Map<AttributeType, VariableSetter> getVariableSetters() { return variableSetters; } BasicAuthPasswordVariableAccessor(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();  }### Answer:
@Test void shouldUpdateBasicAuthPassword() { when(stationMock.getConfiguration()).thenReturn(stationConfigurationMock); when(stationConfigurationMock.getComponentsConfiguration()).thenReturn(componentsConfigurationMock); when(componentsConfigurationMock.getSecurityCtrlr()).thenReturn(securityComponentConfigurationMock); VariableSetter variableSetter = basicAuthPasswordVariableAccessor.getVariableSetters().get(AttributeType.ACTUAL); variableSetter.set(attributePath(), BASIC_AUTH_PASSWORD_ATTRIBUTE); verify(securityComponentConfigurationMock).setBasicAuthPassword(eq(BASIC_AUTH_PASSWORD_VALUE)); }
@Test void shouldCallStationReconnect() { when(stationMock.getConfiguration()).thenReturn(stationConfigurationMock); when(stationConfigurationMock.getComponentsConfiguration()).thenReturn(componentsConfigurationMock); when(componentsConfigurationMock.getSecurityCtrlr()).thenReturn(securityComponentConfigurationMock); VariableSetter variableSetter = basicAuthPasswordVariableAccessor.getVariableSetters().get(AttributeType.ACTUAL); variableSetter.set(attributePath(), BASIC_AUTH_PASSWORD_ATTRIBUTE); verify(stationMock).reconnect(anyLong(), any(TimeUnit.class)); }