### Question:
MemoryParametersParser implements ParametersParser<Integer> { @Override public Integer parse(List<Map<String, Object>> parametersList) { return parseMemory((String) PropertiesUtil.getPropertyValue(parametersList, parameterName, defaultMemory)); } MemoryParametersParser(String parameterName, String defaultMemory); @Override Integer parse(List<Map<String, Object>> parametersList); static Integer parseMemory(String value);  }### Answer:
@Test void testInvalidMemoryParsing() { List<Map<String, Object>> parametersList = List.of(Map.of(SupportedParameters.MEMORY, "test-mb")); assertThrows(ContentException.class, () -> parser.parse(parametersList)); }
@Test void testDefaultMemoryParsing() { Integer memory = parser.parse(Collections.emptyList()); assertEquals(DEFAULT_MEMORY, memory); }