static Timestamp parseTimeStamp(final String value) {
        try {
            // JDK format in Timestamp.valueOf is compatible with TIMESTAMP_FORMAT
            return Timestamp.valueOf(value);
        } catch (IllegalArgumentException e) {
            return throwRuntimeParseException(value, new ParseException(e.getMessage(), 0), TIMESTAMP_FORMAT);
        }
    }
@Test
    public void testTimestampWithTrailingZeros() throws Exception {
        // Given
        Timestamp expectedTimestamp = new Timestamp(new SimpleDateFormat(TIMESTAMP_FORMAT)
                .parse("2010-10-20 10:20:30.040")
                .getTime());

        // When
        Timestamp actualTimestamp = DateHelper.parseTimeStamp(expectedTimestamp.toString());

        // Then
        assertTimestampsEqual(expectedTimestamp, actualTimestamp);
    }