hunk.code_window:         StepVerifier
                   .create(applicationPagesDTOMono)
                   .assertNext(applicationPagesDTO -> {
                       assertThat(applicationPagesDTO.getPages().size()).isEqualTo(4);
                       Set<String> pageNames = applicationPagesDTO.getPages().stream().map(pageNameIdDTO -> pageNameIdDTO.getName()).collect(Collectors.toSet());
                       assertThat(pageNames).containsExactlyInAnyOrder("Page1", "Page2", "Page3", "Page4");
                   })
                   .verifyComplete();
       }
   }
hunk.labels: keep keep keep keep keep replace replace keep keep keep keep
hunk.after_edit:                     List<String> pageNames = applicationPagesDTO.getPages().stream().map(pageNameIdDTO -> pageNameIdDTO.getName()).collect(Collectors.toList());
                       assertThat(pageNames).containsExactly("Page1", "Page2", "Page3", "Page4");
  
hunk.file_path: app/server/appsmith-server/src/test/java/com/appsmith/server/services/ApplicationServiceTest.java
hunk.type: replace
file: import React, { useState } from "react";
  import { useDispatch, useSelector } from "react-redux";
  import { setThemeMode } from "actions/themeActions";
  import { ThemeMode } from "reducers/uiReducers/themeReducer";
  import Switch from "components/ads/RectangularSwitcher";
  import MenuItem from "components/ads/MenuItem";
  import { getThemeDetails } from "selectors/themeSelectors";
  
  export default function ThemeSwitcher(props: { className?: string }) {
    const dispatch = useDispatch();
    const themeDetails = useSelector(getThemeDetails);
    const [switchedOn, setSwitchOn] = useState(
      themeDetails.mode === ThemeMode.DARK,
    );
  
    return (
      <MenuItem
        text="Theme"
        label={
          <Switch
            className={props.className}
            value={switchedOn}
            onSwitch={(value) => {
              setSwitchOn(value);
              dispatch(setThemeMode(value ? ThemeMode.DARK : ThemeMode.LIGHT));
            }}
          ></Switch>
        }
      />
    );
  }
  