public static Builder builder(
      String testName, String projectId, CredentialsProvider credentialsProvider) {
    checkArgument(!Strings.isNullOrEmpty(testName), "testName can not be null or empty");
    checkArgument(!projectId.isEmpty(), "projectId can not be empty");
    return new Builder(testName, projectId, credentialsProvider);
  }
@Test
  public void testBuilderWithInvalidProjectShouldFail() {
    IllegalArgumentException exception =
        assertThrows(
            IllegalArgumentException.class,
            () -> PubsubResourceManager.builder("test-a", "", null));
    assertThat(exception).hasMessageThat().contains("projectId can not be empty");
  }