public static SerializableConfiguration fromMap(Map<String, String> entries) {
    Configuration hadoopConfiguration = new Configuration();

    for (Map.Entry<String, String> entry : entries.entrySet()) {
      hadoopConfiguration.set(entry.getKey(), entry.getValue());
    }

    return new SerializableConfiguration(hadoopConfiguration);
  }
@Test
  public void testFromMap() {
    SerializableConfiguration testConf =
        SerializableConfiguration.fromMap(ImmutableMap.of("hadoop.silly.test", "test-value"));

    assertEquals("test-value", testConf.get().get("hadoop.silly.test", "default-value"));
  }