/** Test fetch light by id. */
  @Test
  public void testFetchLightById() {
    // Success situation
    LightRequest lightRequest = TestBaseUtil.createLightRequest();
    Light light = TestBaseUtil.createLight();
    lightRequest.addLight(light);
    InternalResultsResponse<Light> response =
        getSmartPointAccessorBCL().fetchLightById(lightRequest);
    assertResultResponse(response);

    lightRequest = TestBaseUtil.createLightRequest();
    light = TestBaseUtil.createLight();
    light.getLightLocation().setZipCode("OffSetNegative");
    lightRequest.addLight(light);
    response = getSmartPointAccessorBCL().fetchLightById(lightRequest);
    assertResultResponse(response);

    resetMocksToSmartPointArea();

    // Error situation
    setSituation(
        getSmartPointAccessorBCL(), SituationsEnum.ERROR, ISmartPointDAC.class, "fetchLightById");
    lightRequest = TestBaseUtil.createLightRequest();
    light = TestBaseUtil.createLight();
    lightRequest.addLight(light);
    response = getSmartPointAccessorBCL().fetchLightById(lightRequest);
    assertMessages(response, ERROR_CODE);
  }