@Test
public void testGetOptionalForParameterAsBool() {

    Optional<Boolean> result = ResourceUtils.getOptionalForParameterAsBool(null);
    assertEquals(Optional.absent(), result);
    result = ResourceUtils.getOptionalForParameterAsBool("");
    assertEquals(Optional.absent(), result);
    boolean value = false;
    result = ResourceUtils.getOptionalForParameterAsBool(Boolean.toString(value));
    assertEquals(value, result.get().booleanValue());
}