Code review comment: Can we use `current` branch instead of `master` branch?  Refs: https://stackoverflow.com/questions/49106104/get-current-git-branch-inside-a-java-test

Code under review:
public void keyVaultWithVirtualMachineMSI() {
        final VirtualMachine vm = AZURE.virtualMachines().getByResourceGroup(SPRING_RESOURCE_GROUP, VM_NAME);

        final String host = vm.getPrimaryPublicIPAddress().ipAddress();

        final List<String> commands = new ArrayList<>();
        commands.add(String.format("cd /home/%s", VM_USER_USERNAME));
        commands.add("mkdir azure-sdk-for-java");
        commands.add("cd azure-sdk-for-java");
        commands.add("git init");
        commands.add("git remote add origin https:
        commands.add("git config core.sparsecheckout true");
        commands.add("echo sdk/spring > .git/info/sparse-checkout");
        commands.add("git pull origin master");
        commands.add("cd sdk/spring/");
        commands.add("mvn package -Dmaven.test.skip=true");
        commands.add("cd azure-spring-boot-test-application/target/");
        commands.add(String.format("nohup java -jar -Xdebug "
                + "-Xrunjdwp:server=y,transport=dt_socket,address=4000,suspend=n "
                + "-Dazure.keyvault.uri=%s %s &"
                + " >/log.txt  2>&1",
            AZURE_KEYVAULT_URI,
            "app.jar"));

        vm.runCommand(new RunCommandInput().withCommandId("RunShellScript").withScript(commands));

        final ResponseEntity<String> response = curlWithRetry(
            String.format("http:
            3,
            60_000,
            String.class);

        assertEquals(HttpStatus.OK, response.getStatusCode());
        assertEquals(KEY_VAULT_SECRET_VALUE, response.getBody());
        LOGGER.info("key vault value is: {}", response.getBody());
        LOGGER.info("--------------------->test virtual machine with MSI over");
    }

Line commented on: commands.add("git pull origin master");

Revised code:
public void keyVaultWithVirtualMachineMSI() {
        final VirtualMachine vm = AZURE.virtualMachines().getByResourceGroup(SPRING_RESOURCE_GROUP, VM_NAME);

        final String host = vm.getPrimaryPublicIPAddress().ipAddress();

        final List<String> commands = new ArrayList<>();
        commands.add(String.format("cd /home/%s", VM_USER_USERNAME));
        commands.add("mkdir azure-sdk-for-java");
        commands.add("cd azure-sdk-for-java");
        commands.add("git init");
        commands.add("git remote add origin https:
        commands.add("git config core.sparsecheckout true");
        commands.add("echo sdk/spring > .git/info/sparse-checkout");
        commands.add("git pull origin master");
        commands.add("cd sdk/spring/");
        commands.add("mvn package -Dmaven.test.skip=true");
        commands.add("cd azure-spring-boot-test-application/target/");
        commands.add(String.format("nohup java -jar -Xdebug "
                + "-Xrunjdwp:server=y,transport=dt_socket,address=4000,suspend=n "
                + "-Dazure.keyvault.uri=%s %s &"
                + " >/log.txt  2>&1",
            AZURE_KEYVAULT_URI,
            "app.jar"));

        vm.runCommand(new RunCommandInput().withCommandId("RunShellScript").withScript(commands));

        final ResponseEntity<String> response = curlWithRetry(
            String.format("http:
            3,
            60_000,
            String.class);

        assertEquals(HttpStatus.OK, response.getStatusCode());
        assertEquals(KEY_VAULT_SECRET_VALUE, response.getBody());
        LOGGER.info("key vault value is: {}", response.getBody());
        LOGGER.info("--------------------->test virtual machine with MSI over");
    }