public static long parse(String text) {
		return DataSize.parse(text).toBytes();
	}
@Test
	public void parseTest(){
		long parse = DataSizeUtil.parse("3M");
		assertEquals(3145728, parse);

		parse = DataSizeUtil.parse("3m");
		assertEquals(3145728, parse);

		parse = DataSizeUtil.parse("3MB");
		assertEquals(3145728, parse);

		parse = DataSizeUtil.parse("3mb");
		assertEquals(3145728, parse);

		parse = DataSizeUtil.parse("3.1M");
		assertEquals(3250585, parse);

		parse = DataSizeUtil.parse("3.1m");
		assertEquals(3250585, parse);

		parse = DataSizeUtil.parse("3.1MB");
		assertEquals(3250585, parse);

		parse = DataSizeUtil.parse("-3.1MB");
		assertEquals(-3250585, parse);

		parse = DataSizeUtil.parse("+3.1MB");
		assertEquals(3250585, parse);

		parse = DataSizeUtil.parse("3.1mb");
		assertEquals(3250585, parse);

		parse = DataSizeUtil.parse("3.1");
		assertEquals(3, parse);

		try {
			DataSizeUtil.parse("3.1.3");
		} catch (IllegalArgumentException ie) {
			assertEquals("'3.1.3' is not a valid data size", ie.getMessage());
		}


	}