class LinshareConfiguration {

    public static LinshareConfiguration from(Configuration configuration) throws MalformedURLException {
        return builder()
            .urlAsString(configuration.getString(URL_PROPERTY, null))
            .basicAuthorization(
                configuration.getString(UUID_PROPERTY),
                configuration.getString(PASSWORD_PROPERTY))
            .build();
    }

    @VisibleForTesting  LinshareConfiguration(URL url, UUID uuid, String password);

}