source: class CosemDateConverterTest {
  
      private MapperFactory mapperFactory;
      private static final byte FIRST_BYTE_FOR_YEAR;
      private static final byte SECOND_BYTE_FOR_YEAR;
      private static final byte BYTE_FOR_MONTH;
      private static final byte BYTE_FOR_DAY_OF_MONTH;
      private static final byte BYTE_FOR_DAY_OF_WEEK;
      private static final byte[] COSEMDATE_BYTE_ARRAY;
  
      @Test
      public void testWildCards() {
  
target:         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);
          Assert.assertEquals(2015, date.getYear());
          Assert.assertEquals(6, date.getMonth());
          Assert.assertEquals(0xFF, date.getDayOfMonth());
          Assert.assertEquals(0xFF, date.getDayOfWeek());
  
          source = new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFE, (byte) 0xFD, (byte) 0xFF };
          date = converter.convert(source, converter.getBType(), null);
          Assert.assertEquals(0xFFFF, date.getYear());
          Assert.assertEquals(0xFE, date.getMonth());
          Assert.assertEquals(0xFD, date.getDayOfMonth());
          Assert.assertEquals(0xFF, date.getDayOfWeek());
  
          source = new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFE, 21, 3 };
          date = converter.convert(source, converter.getBType(), null);
          Assert.assertEquals(0xFFFF, date.getYear());
          Assert.assertEquals(0xFE, date.getMonth());
          Assert.assertEquals(21, date.getDayOfMonth());
          Assert.assertEquals(3, date.getDayOfWeek());
      }
  
  }