BitcoindeMaintenance { @JsonCreator public BitcoindeMaintenance( @JsonProperty("message") String message, @JsonProperty("start") Date start, @JsonProperty("end") Date end) { this.message = message; this.start = start; this.end = end; } @JsonCreator  BitcoindeMaintenance(
      @JsonProperty("message") String message,
      @JsonProperty("start") Date start,
      @JsonProperty("end") Date end);   }
@Test public void testBitcoindeMaintenance() throws IOException { InputStream is = BitcoindeMaintenanceTest.class.getResourceAsStream( "/org/knowm/xchange/bitcoinde/v4/dto/maintenance.json"); ObjectMapper mapper = new ObjectMapper(); BitcoindeMaintenance bitcoindeMaintenance = mapper.readValue(is, BitcoindeMaintenance.class); assertThat(bitcoindeMaintenance.getMessage()) .isEqualTo( "*** Scheduled maintainance on 2018/01/26 at 04:00 am until approx. 06:00 am (CEST)*** Due to network infrastructure maintenance Bitcoin.de will be unavailable between 04:00 am and approx. 06:00 am (CEST). ***"); assertThat(bitcoindeMaintenance.getStart()).isEqualTo("2018-01-26T04:00:00+01:00"); assertThat(bitcoindeMaintenance.getEnd()).isEqualTo("2018-01-26T06:00:00+01:00"); }