private SortedSet<Package> getInstalledPackages() {
    SortedSet<Package> installedPackages = new TreeSet<Package>();

    installedPackages.add(PackageBuilder.builder().setName("Package 1").setID("1").build());
    installedPackages.add(PackageBuilder.builder().setName("Package 2").setID("2").build());
    installedPackages.add(PackageBuilder.builder().setName("Package 3").setID("3").build());
    installedPackages.add(PackageBuilder.builder().setName("Package 4").setID("4").build());
    installedPackages.add(PackageBuilder.builder().setName("Package 5").setID("5").build());

    return installedPackages;
  }
  private SortedSet<Package> getAvailablePackages() {
    SortedSet<Package> availablePackages = new TreeSet<Package>();

    availablePackages.add(PackageBuilder.builder().setName("Package 3").setID("3").build());
    availablePackages.add(PackageBuilder.builder().setName("Package 4").setID("4").build());
    availablePackages.add(PackageBuilder.builder().setName("Package 5").setID("5").build());
    availablePackages.add(PackageBuilder.builder().setName("Package 6").setID("6").build());
    availablePackages.add(PackageBuilder.builder().setName("Package 7").setID("7").build());
    availablePackages.add(PackageBuilder.builder().setName("Package 8").setID("8").build());

    return availablePackages;
  }
  private Update getUpdate() {
    SortedSet<Package> packages = new TreeSet<Package>();
    packages.add(PackageBuilder.builder().setName("some package").setID("1").build());

    String programName = "some name";
    String pathToDir = "C:\\program";
    String serverAddress = "updateserver.com";
    ProgramBuilder.builder()
        .setName(programName)
        .setPathToProgramDirectory(pathToDir)
        .setServerAddress(serverAddress)
        .setPackages(packages)
        .build();

    String packageName = "some package";
    String packageId = "2";
    String versionNumber = "1.5.7.0";
    String developmentVersion = "false";
    String updateId = "2";
    String changes = "some changes";
    String strategy = "unzip";
    String originalName = "name.zip";
    String relativePath = "/";
    String command = "";
    Update update =
        UpdateBuilder.builder()
            .setID(updateId)
            .setPackageName(packageName)
            .setPackageID(packageId)
            .setVersionNumber(versionNumber)
            .setDevelopmentVersion(developmentVersion)
            .setChanges(changes)
            .setUpdateStrategy(strategy)
            .setOriginalName(originalName)
            .setRelativePath(relativePath)
            .setCommand(command)
            .setPackage(packages.first())
            .setStatus(EUpdateStatus.SELECTED)
            .setFile(new File("C:\\someupdate.zip"))
            .build();
    update.addObserver(new UpdateObserver());

    return update;
  }