@Test
public void should_convert_string_to_double() throws Exception {

    // given
    Double expecteDouble = Double.valueOf("123");
    StateTypeConverter typeConverter = new StateTypeConverter();
    // when
    Double convertedDouble = typeConverter.convert("123", Double.class);
    // then
    assertThat(convertedDouble).isEqualTo(expecteDouble);
}