@Test
public void testRemoveBlanks() {

    Map<String, ConversionOptionBO> options = new HashMap<>();
    assertEquals("foo", Util.justify("foo  ", "both", options, 0));
    assertEquals("foo", Util.justify("foo ", "both", options, 0));
    assertEquals("foo", Util.justify(" foo", "both", options, 0));
    assertEquals("foo", Util.justify("  foo", "both", options, 0));
    assertEquals("  foo", Util.justify("  foo  ", "left", options, 0));
    assertEquals("foo  ", Util.justify("  foo  ", "right", options, 0));
}