@SuppressWarnings("unchecked")
  public static void main(String... args) throws Exception {
    AuthTestDriver authTestDriver = new AuthTestDriver();

    MicrosoftTransferExtension serviceProvider = new MicrosoftTransferExtension();
    TokenAuthData token = authTestDriver.getOAuthTokenCode();

    Exporter<TokenAuthData, ContactsModelWrapper> contacts =
        (Exporter<TokenAuthData, ContactsModelWrapper>) serviceProvider.getExporter(CONTACTS);
    ExportResult<ContactsModelWrapper> wrapper = contacts.export(UUID.randomUUID(), token,
        Optional.empty());
  }
Runs a contacts export using a local setup.
extensions/data-transfer/portability-data-transfer-microsoft/src/test/java/org/datatransferproject/transfer/microsoft/integration/LocalExportTestRunner.java