@Test
public void testInvalidFormatAmount() {

  final Object[][] testParameters = new Object[][] {
      {"0.1", Unit.AER},
      {"-1", Unit.AER},
      {"-0.000000001", Unit.GAER},
      {"0.0000000001", Unit.GAER},
      {"0.0000000009", Unit.GAER},
      {"-0.000000000000000001", Unit.AERGO},
      {"0.0000000000000000001", Unit.AERGO},
      {"0.0000000000000000009", Unit.AERGO},
      {"1+0", Unit.AER},
      {"1+0", Unit.GAER},
      {"1+0", Unit.AERGO}
  };
  for (final Object[] testParameter : testParameters) {
    final String amount = (String) testParameter[0];
    final Unit unit = (Unit) testParameter[1];
    try {
      // when
      Aer.of(amount, unit);
      fail(String.format("Should throw exception on Amount: %s, Unit: %s", amount, unit));
    } catch (Exception e) {
      // then
    }
  }
}