EBSBuilder { Integer parseSize(String size) { if (size == null) return null; Asserts.isTrue(size.endsWith("G"), "size only supports format like 30G"); return Integer.valueOf(size.substring(0, size.length() - 1)); }  EBS build(Map<String, Object> params);  }
@Test void parseSize() { assertThat(builder.parseSize("30G")).isEqualTo(30); }