Buggy code:
public class MapServerTest extends BaseTestCase { private LispMappingService testedMapServer ; private ILispDAO lispDAO ; private MapRegisterBuilder mapRegisterBuilder ; private Ipv4 eid ; private Ipv4 rloc ; private ValueSaverAction < MappingEntry < ? > [ ] > mappingEntriesSaver ; private MapRegister mapRegisterWithAuthentication ; @ Override @ Before public void before ( ) throws Exception { super . before ( ) ; lispDAO = context . mock ( ILispDAO . class ) ; testedMapServer = new LispMappingService ( ) ; testedMapServer . basicInit ( lispDAO ) ; mapRegisterBuilder = new MapRegisterBuilder ( ) ; mapRegisterBuilder . setKeyId ( ( ( short ) ( 0 ) ) ) ; mapRegisterBuilder . setAuthenticationData ( new byte [ 0 ] ) ; eid = LispAFIConvertor . asIPAfiAddress ( "10.31.0.5" ) ; <START_BUG> rloc = LispAFIConvertor . asIPAfiAddress ( "0x192.168.136.10" ) ; <END_BUG> EidToLocatorRecordBuilder recordBuilder = new EidToLocatorRecordBuilder ( ) ; recordBuilder . setLispAddressContainer ( LispAFIConvertor . toContainer ( eid ) ) . setMaskLength ( ( ( short ) ( 32 ) ) ) ; recordBuilder . setLocatorRecord ( new ArrayList < org . opendaylight . yang . gen . v1 . lispflowmapping . rev131031 . locatorrecords . LocatorRecord > ( ) ) ; recordBuilder . getLocatorRecord ( ) . add ( new LocatorRecordBuilder ( ) . setLispAddressContainer ( LispAFIConvertor . toContainer ( rloc ) ) . build ( ) ) ; recordBuilder . setAction ( NoAction ) . setMapVersion ( ( ( short ) ( 0 ) ) ) . setAuthoritative ( false ) . setRecordTtl ( 60 ) . setMaskLength ( ( ( short ) ( 32 ) ) ) ; mapRegisterBuilder . setEidToLocatorRecord ( new ArrayList < org . opendaylight . yang . gen . v1 . lispflowmapping . rev131031 . eidtolocatorrecords . EidToLocatorRecord > ( ) ) ; mapRegisterBuilder . getEidToLocatorRecord ( ) . add ( recordBuilder . build ( ) ) ; mapRegisterWithAuthentication = MapRegisterSerializer . getInstance ( ) . deserialize ( hexToByteBuffer ( ( "38<seq2seq4repair_space>00<seq2seq4repair_space>01<seq2seq4repair_space>01<seq2seq4repair_space>FF<seq2seq4repair_space>BB<seq2seq4repair_space>" + ( ( ( "00<seq2seq4repair_space>00<seq2seq4repair_space>00<seq2seq4repair_space>00<seq2seq4repair_space>00<seq2seq4repair_space>00<seq2seq4repair_space>00<seq2seq4repair_space>01<seq2seq4repair_space>00<seq2seq4repair_space>14<seq2seq4repair_space>2c<seq2seq4repair_space>61<seq2seq4repair_space>b9<seq2seq4repair_space>c9<seq2seq4repair_space>9a<seq2seq4repair_space>20<seq2seq4repair_space>" + "ba<seq2seq4repair_space>d8<seq2seq4repair_space>f5<seq2seq4repair_space>40<seq2seq4repair_space>d3<seq2seq4repair_space>55<seq2seq4repair_space>6f<seq2seq4repair_space>5f<seq2seq4repair_space>6e<seq2seq4repair_space>5a<seq2seq4repair_space>b2<seq2seq4repair_space>0a<seq2seq4repair_space>bf<seq2seq4repair_space>b5<seq2seq4repair_space>00<seq2seq4repair_space>00<seq2seq4repair_space>" ) + "00<seq2seq4repair_space>0a<seq2seq4repair_space>01<seq2seq4repair_space>20<seq2seq4repair_space>10<seq2seq4repair_space>00<seq2seq4repair_space>00<seq2seq4repair_space>00<seq2seq4repair_space>00<seq2seq4repair_space>01<seq2seq4repair_space>99<seq2seq4repair_space>10<seq2seq4repair_space>fe<seq2seq4repair_space>01<seq2seq4repair_space>01<seq2seq4repair_space>64<seq2seq4repair_space>" ) + "ff<seq2seq4repair_space>00<seq2seq4repair_space>00<seq2seq4repair_space>05<seq2seq4repair_space>00<seq2seq4repair_space>01<seq2seq4repair_space>c0<seq2seq4repair_space>a8<seq2seq4repair_space>88<seq2seq4repair_space>0a" ) ) ) ) ; mappingEntriesSaver = new ValueSaverAction < MappingEntry < ? > [ ] > ( ) ; } @ Test public void handleMapRegister__NonSetMBit ( ) throws Exception { } @ Test public void handleMapRegisterIpv4__ValidNotifyEchoesRegister ( ) throws Exception { } @ Test public void handleMapRegisterIpv4__CloneNotOwnYouClown ( ) throws Exception { } @ Test public void handleMapRegisterIpv4__ValidMask ( ) throws Exception { } @ Test public void handleMapRegister__NonMaskable ( ) throws Exception { } @ Test public void handleMapRegister__ZeroMask ( ) throws Exception { } @ Test public void handleMapRegisterIPv4__ZeroMask ( ) throws Exception { } @ Test public void handleMapRegisterIpv4__ValidMask32 ( ) throws Exception { } @ Test public void handleMapRegisterIpv6__ValidMask96 ( ) throws Exception { } @ Test public void handleMapRegisterIpv6__ZeroMask ( ) throws Exception { } @ Test public void handleMapRegisterIpv6__ValidMask48 ( ) throws Exception { } @ Test public void handleMapRegisterIpv6__ValidMask128 ( ) throws Exception { } @ Test public void handleMapRegisterIPV4AndIpv6__ValidMask96 ( ) throws Exception { } @ Test public void handleMapRegister__MultipleRLOCs ( ) throws Exception { } @ Test public void handleMapRegister__MultipleTypes ( ) throws Exception { } @ Test public void handleMapRegister__TestOverwrite ( ) throws Exception { } @ Test public void handleMapRegister__TestDontOverwrite ( ) throws Exception { } private void addEidToLocatorRecord ( ) { } @ Test public void handleMapRegister__MultipleEIDs ( ) throws Exception { } @ Test public void handleMapRegisterIpv4__ChekWrongPassword ( ) throws Exception { } @ Test public void handleMapRegisterIpv4__ChcekNoPasswordAndThenPassword ( ) throws Exception { } @ Test public void handleMapRegisterIpv4__ChcekNoPassword ( ) throws Exception { } @ Test public void handleMapRegisterIpv4__ChcekNoreturn ( ) throws Exception { } @ SuppressWarnings ( "unchecked" ) @ Test public void handleAddAuthenticationKey ( ) throws Exception { } @ Test public void handleGetAuthenticationKey ( ) throws Exception { } @ Test public void handleGetAuthenticationKeyNoIteration ( ) throws Exception { } @ Test public void handleRemoveAuthenticationKey ( ) throws Exception { } private void addDefaultPutAndGetExpectations ( LispAFIAddress addr , int mask ) { } private void addGetExpectations ( LispAFIAddress address , int mask ) { } private void addPutExpectations ( LispAFIAddress address , int mask ) { } private void addGetExpectations ( LispAFIAddress address , int mask , int withoutPassword , int withPassword , String password ) { } private IMappingServiceKey getDefualtKey ( ) { } private IMappingServiceKey getKey ( int mask ) { } private MapRegisterBuilder getDefaultMapRegisterBuilder ( ) { } private EidToLocatorRecordBuilder getDefaultEidToLocatorBuilder ( ) { } private LocatorRecordBuilder getDefaultLocatorBuilder ( ) { } }

Fix:
rloc = LispAFIConvertor . asIPAfiAddress ( "192.168.136.10" ) ;