public static boolean isPortable(SamzaPipelineOptions options) {
    Map<String, String> override = options.getConfigOverride();
    if (override == null) {
      return false;
    }

    return Boolean.parseBoolean(override.getOrDefault(BEAM_PORTABLE_MODE, "false"));
  }
@Test
  public void testNonPortableModeNullConfig() {
    SamzaPipelineOptions mockOptions = mock(SamzaPipelineOptions.class);
    doReturn(null).when(mockOptions).getConfigOverride();
    Assert.assertFalse(
        "Expected false for portable mode ", PortableConfigUtils.isPortable(mockOptions));
  }