@Test
public void testParseDimensions_unparseableDimensionValueThrows() {

    final List<String> dimensionNames = new ArrayList<>();
    dimensionNames.add("down");
    final Properties dimensionProps = new Properties();
    dimensionProps.put("down", "weired_value");
    try {
        DimensionConfigurationInitializer.parseDimensionConfiguration(dimensionNames, dimensionProps);
        fail("ToolException expected");
    } catch (ToolException expected) {
        assertEquals("Cannot parse length of dimension 'down'.", expected.getMessage());
    }
}