@Override
    public String typeForDataConnection(String name) {
        DataConnectionEntry dataConnection = dataConnections.get(name);
        if (dataConnection == null) {
            throw new HazelcastException("Data connection '" + name + "' not found");
        }
        String type = dataConnectionClassToType.get(dataConnection.instance.getClass());
        if (type == null) {
            throw new HazelcastException("Data connection type for class '" + dataConnection.getClass() + "' is not known");
        }
        return type;
    }
@Test
    public void should_return_data_connection_type() {
        String type = dataConnectionService.typeForDataConnection(TEST_CONFIG);
        assertThat(type).isEqualTo(DUMMY_TYPE);
    }