@Override
  public DataTypes handle(GetDataTypes request) {
    Set<DataVertical> transferDataTypes = registry.getTransferDataTypes();
    if (transferDataTypes.isEmpty()) {
      monitor.severe(
          () ->
              "No transfer data types were registered in "
                  + AuthServiceProviderRegistry.class.getName());
    }
    return new DataTypes(transferDataTypes);
  }
@Test
  public void testHandle() {
    AuthServiceProviderRegistry registry = mock(AuthServiceProviderRegistry.class);
    Set<DataVertical> dataTypes = new HashSet<>(Arrays.asList(CONTACTS, PHOTOS));
    when(registry.getTransferDataTypes()).thenReturn(dataTypes);
    DataTypesAction dataTypesAction = new DataTypesAction(registry, new Monitor() {
    });

    GetDataTypes request = mock(GetDataTypes.class);
    DataTypes actual = dataTypesAction.handle(request);
    assertEquals(actual.getDataTypes(), dataTypes);
  }