@Test
public void testGetOptionalForParameter() {

    Optional<String> result = ResourceUtils.getOptionalForParameter(null);
    assertEquals(Optional.absent(), result);
    result = ResourceUtils.getOptionalForParameter("");
    assertEquals(Optional.absent(), result);
    String param = "some-param";
    result = ResourceUtils.getOptionalForParameter(param);
    assertEquals(param, result.get());
}