@Test
public void parseParametersTest() {

    final SimpleDateFormat simpleDateFormat = new SimpleDateFormat(
            DomainParameterParser.DATE_FORMAT_WITH_TIMESTAMP);
    final String parameters = "testS(String)=56788,testL(Long)=56,testD(date)=2015/03/27 23:19:24:120";
    final Map<String, Object> parameterMap = DomainParameterParser
            .parseParameters(parameters);
    assertThat(parameterMap).isNotNull();
    assertThat(parameterMap).isNotEmpty();
    assertThat(parameterMap.containsKey("testS")).isTrue();
    assertThat(parameterMap.containsKey("testL")).isTrue();
    assertThat(parameterMap.containsKey("testD")).isTrue();
    final String stringValue = (String) parameterMap.get("testS");
    final Long longValue = (Long) parameterMap.get("testL");
    final Date dateValue = (Date) parameterMap.get("testD");
    assertThat(stringValue).isEqualTo("56788");
    assertThat(longValue).isEqualTo(56L);
    assertThat(simpleDateFormat.format(dateValue)).isEqualTo(
            "2015/03/27 23:19:24:120");
}