@Test
  public void distcpShouldNotBeCalledForSmallerFileSize() throws Exception {
    try (MockedStatic<UserGroupInformation> userGroupInformationMockedStatic = mockStatic(UserGroupInformation.class)) {
      userGroupInformationMockedStatic.when(UserGroupInformation::getCurrentUser).thenReturn(mock(UserGroupInformation.class));

      HiveConf conf = Mockito.spy(new HiveConf());
      CopyUtils copyUtils = new CopyUtils("", conf, null);
      long MB_16 = 16 * 1024 * 1024;
      assertFalse(copyUtils.limitReachedForLocalCopy(MB_16, 100L));
    }
  }
Unit Test class for CopyUtils class.
ql/src/test/org/apache/hadoop/hive/ql/parse/repl/TestCopyUtils.java