@Test
public void choice() throws Exception {

    prepareConfig(RoundingMode.CEILING.toString());
    assertEquals(RoundingMode.CEILING, this.config
            .getChoice(XenonConfigurationTest.class, this.foundProperty, RoundingMode.class, RoundingMode.HALF_UP));
    assertEquals(RoundingMode.FLOOR, this.config
            .getChoice(XenonConfigurationTest.class, this.undefined, RoundingMode.class, RoundingMode.FLOOR));
    prepareConfig("random junk");
    assertEquals(RoundingMode.UP, this.config
            .getChoice(XenonConfigurationTest.class, this.foundProperty, RoundingMode.class, RoundingMode.UP));
}