FileControlImpl implements FileControl { public String getBasePath() { return basePath; }  @Override void copyFile(String srcFile, String newFile); @Override void deleteFile(String srcFile); @Override void mergeFile(List<String> fileList, String newFile); @Override void renameFile(String srcFile, String newFile); String getBasePath(); void setBasePath(String basePath); void setCheckFileExist(boolean checkFileExist);  }
@Test public void testGetBasePath01() throws Exception { FileControlImpl fileControl = new FileControlImpl(); String basePath = "aaa"; ReflectionTestUtils.setField(fileControl, "basePath", basePath); String getBasePath = fileControl.getBasePath(); assertEquals(basePath, getBasePath); }