### Question:
SinkUtils { public static int getProperty(Map<String, String> props, String propertyName, int defaultValue) { if (props != null) { String propertyValue = props.get(propertyName); if (StringUtils.isNotBlank(propertyValue)) { return Integer.parseInt(propertyValue); } } return defaultValue; } private  SinkUtils(); static String getStringPayload(Gson gson, SinkRecord record); static int getProperty(Map<String, String> props, String propertyName, int defaultValue); static int getProperty(Map<String, String> properties, String key, int defaultValue, int multiplier);  }### Answer:
@Test void testGetPropertyMissingPropertyWithDefault() { assertEquals(TEST_DEFAULT_VALUE, SinkUtils.getProperty(new HashMap<>(), TEST_KEY, TEST_DEFAULT_VALUE)); }
@Test void testGetProperty() { assertEquals(TEST_VALUE, SinkUtils.getProperty( ImmutableMap.of(TEST_KEY, String.valueOf(TEST_VALUE)), TEST_KEY, TEST_DEFAULT_VALUE )); }
@Test void testGetPropertyMissingPropertyWithMultiplier() { assertEquals(2000, SinkUtils.getProperty(new HashMap<>(), TEST_KEY, TEST_DEFAULT_VALUE, TEST_MULTIPLIER)); }
@Test void testGetPropertyWithMultiplier() { assertEquals(3000, SinkUtils.getProperty( ImmutableMap.of(TEST_KEY, String.valueOf(TEST_VALUE)), TEST_KEY, TEST_DEFAULT_VALUE, TEST_MULTIPLIER )); }