@Test
  public final void testAllowNegative_positive1() {
    pattern.setAllowNegative(true);

    assertTrue(pattern.matches(".1"));
  }
 @Test
 public final void testDefaultAllows_invalid3() {
   assertFalse(pattern.matches("-1."));
 }
 @Test
 public final void testDefaultAllows_negative5() {
   assertFalse(pattern.matches("-1.0"));
 }
 @Test
 public final void testDefaultAllows_positive5() {
   assertTrue(pattern.matches("1.0"));
 }
  @Test
  public final void testAllowNegative_invalid3() {
    pattern.setAllowNegative(true);

    assertFalse(pattern.matches("-1."));
  }
  @Test
  public final void testAllowNegative_negative5() {
    pattern.setAllowNegative(true);

    assertTrue(pattern.matches("-1.0"));
  }