@Override
  public Thread newThread(Runnable r) {
    Thread t = new Thread(r);
    t.setName(NAME_PREFIX + count.getAndIncrement());
    t.setDaemon(true);
    return t;
  }
@Test
  public void testName() {
    GitThreadFactory factory = new GitThreadFactory();
    assertThat(factory.newThread(() -> {
    }).getName()).isEqualTo("git-scm-0");
    assertThat(factory.newThread(() -> {
    }).getName()).isEqualTo("git-scm-1");
  }