@Test
  public void testGetParam() {
    Map<String, String> paramMap = new HashMap<String, String>();
    paramMap.put("test_severity_1", "10, 50, 100, 200");
    paramMap.put("test_severity_2", "2, 4, 8");
    paramMap.put("test_param_1", "2&");
    paramMap.put("test_param_2", "2");
    paramMap.put("test_param_3", "");
    paramMap.put("test_param_4", null);

    double limits1[] = Utils.getParam(paramMap.get("test_severity_1"), 4);
    assertEquals(10d, limits1[0], 0);
    assertEquals(50d, limits1[1], 0);
    assertEquals(100d, limits1[2], 0);
    assertEquals(200d, limits1[3], 0);

    double limits2[] = Utils.getParam(paramMap.get("test_severity_2"), 4);
    assertEquals(null, limits2);

    double limits3[] = Utils.getParam(paramMap.get("test_param_1"), 1);
    assertEquals(null, limits3);

    double limits4[] = Utils.getParam(paramMap.get("test_param_2"), 1);
    assertEquals(2d, limits4[0], 0);

    double limits5[] = Utils.getParam(paramMap.get("test_param_3"), 1);
    assertEquals(null, limits5);

    double limits6[] = Utils.getParam(paramMap.get("test_param_4"), 1);
    assertEquals(null, limits6);
  }
This class tests the Utils class
test/com/linkedin/drelephant/util/UtilsTest.java