### Question:
SPPDecoder implements MALDecoder { @Override public UInteger decodeNullableUInteger() throws MALException { return isNull() ? null : decodeUInteger(); } SPPDecoder(final InputStream inputStream, final Map properties); @Override Boolean decodeBoolean(); @Override Boolean decodeNullableBoolean(); @Override Float decodeFloat(); @Override Float decodeNullableFloat(); @Override Double decodeDouble(); @Override Double decodeNullableDouble(); @Override Byte decodeOctet(); @Override Byte decodeNullableOctet(); @Override UOctet decodeUOctet(); @Override UOctet decodeNullableUOctet(); @Override Short decodeShort(); @Override Short decodeNullableShort(); @Override UShort decodeUShort(); @Override UShort decodeNullableUShort(); @Override Integer decodeInteger(); @Override Integer decodeNullableInteger(); @Override UInteger decodeUInteger(); @Override UInteger decodeNullableUInteger(); @Override Long decodeLong(); @Override Long decodeNullableLong(); @Override ULong decodeULong(); @Override ULong decodeNullableULong(); @Override String decodeString(); @Override String decodeNullableString(); @Override Blob decodeBlob(); @Override Blob decodeNullableBlob(); @Override Duration decodeDuration(); @Override Duration decodeNullableDuration(); @Override FineTime decodeFineTime(); @Override FineTime decodeNullableFineTime(); @Override Identifier decodeIdentifier(); @Override Identifier decodeNullableIdentifier(); @Override Time decodeTime(); @Override Time decodeNullableTime(); @Override URI decodeURI(); @Override URI decodeNullableURI(); @Override Element decodeElement(final Element element); @Override Element decodeNullableElement(final Element element); @Override Attribute decodeAttribute(); @Override Attribute decodeNullableAttribute(); @Override MALListDecoder createListDecoder(final List list);  }### Answer:
@Test public void testDecodeNullableUInteger1() throws Exception { newBuffer(new byte[]{0}); assertEquals(null, decoder.decodeNullableUInteger()); }
@Test public void testDecodeNullableUInteger2() throws Exception { newBuffer(new byte[]{ 1, (byte) 0b00000001, 1, (byte) 0b11101011, (byte) 0b01111111, 1, (byte) 0b11000101, (byte) 0b11010000, (byte) 0b10000100, (byte) 0b10000000, (byte) 0b00001000, 0 }); assertEquals(new UInteger(1), decoder.decodeNullableUInteger()); assertEquals(new UInteger(16363), decoder.decodeNullableUInteger()); assertEquals(new UInteger(2147559493L), decoder.decodeNullableUInteger()); assertEquals(null, decoder.decodeNullableUInteger()); }
@Test public void testDecodeNullableUInteger2b() throws Exception { newBuffer(new byte[]{ 1, 0, 0, 0, (byte) 0x01, 1, 0, 0, (byte) 0x3F, (byte) 0xEB, 1, (byte) 0x80, (byte) 0x01, (byte) 0x28, (byte) 0x45, 0 }); setVarintSupportedProperty(false); assertEquals(new UInteger(1), decoder.decodeNullableUInteger()); assertEquals(new UInteger(16363), decoder.decodeNullableUInteger()); assertEquals(new UInteger(2147559493L), decoder.decodeNullableUInteger()); assertEquals(null, decoder.decodeNullableUInteger()); }