@Test
@PrepareForTest({PublishPackage.class, FileSet.class})

public void testExecute() throws Exception {
  final ProjectFile projectFile = new ProjectFile();
  projectFile.setTarget(randomUUID().toString());
  final PublishPackage publishPackage = new PublishPackage() {
    @Override
    public ProjectFile readProject() {
      return projectFile;
    }
  };
  FileSet fileSet = mock(FileSet.class);
  mockStatic(FileSet.class);
  when(FileSet.from(any())).thenReturn(fileSet);
  final BuildProject buildProject = mock(BuildProject.class);
  whenNew(BuildProject.class).withAnyArguments().thenReturn(buildProject);
  mockStatic(Files.class);
  publishPackage.execute();
}