@Test
public void testWildCards() {

    byte[] source = new byte[] { (byte) 0x07, (byte) 0xDF, 6, (byte) 0xFF, (byte) 0xFF };
    final CosemDateConverter converter = new CosemDateConverter();
    CosemDate date = converter.convert(source, converter.getBType(), null);
    assertThat(date.getYear()).isEqualTo(2015);
    assertThat(date.getMonth()).isEqualTo(6);
    assertThat(date.getDayOfMonth()).isEqualTo(0xFF);
    assertThat(date.getDayOfWeek()).isEqualTo(0xFF);
    source = new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFE, (byte) 0xFD, (byte) 0xFF };
    date = converter.convert(source, converter.getBType(), null);
    assertThat(date.getYear()).isEqualTo(0xFFFF);
    assertThat(date.getMonth()).isEqualTo(0xFE);
    assertThat(date.getDayOfMonth()).isEqualTo(0xFD);
    assertThat(date.getDayOfWeek()).isEqualTo(0xFF);
    source = new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFE, 21, 3 };
    date = converter.convert(source, converter.getBType(), null);
    assertThat(date.getYear()).isEqualTo(0xFFFF);
    assertThat(date.getMonth()).isEqualTo(0xFE);
    assertThat(date.getDayOfMonth()).isEqualTo(21);
    assertThat(date.getDayOfWeek()).isEqualTo(3);
}