@@ -0,0 +1,2174 @@
+/*%0A * Copyright (c) 2015 Inocybe and others.  All rights reserved.%0A *%0A * This program and the accompanying materials are made available under the%0A * terms of the Eclipse Public License v1.0 which accompanies this distribution,%0A * and is available at http://www.eclipse.org/legal/epl-v10.html%0A */%0A%0Apackage org.opendaylight.ovsdb.openstack.netvirt;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport java.net.HttpURLConnection;%0A%0Aimport org.junit.Test;%0Aimport org.mockito.Mockito;%0Aimport org.opendaylight.ovsdb.plugin.api.Status;%0Aimport org.opendaylight.ovsdb.plugin.api.StatusCode;%0A%0A/**%0A * Unit test for %7B@link AbstractHandler%7D%0A */%0Apublic class AbstractHandlerTest %7B%0A%0A    @Test%0A    public void testAbstractHandler() %7B%0A        Status status = Mockito.mock(Status.class);%0A%0A        Mockito.when(status.getCode())%0A                .thenReturn(StatusCode.BADREQUEST)%0A                .thenReturn(StatusCode.CONFLICT)%0A                .thenReturn(StatusCode.NOTACCEPTABLE)%0A                .thenReturn(StatusCode.NOTFOUND)%0A                .thenReturn(StatusCode.GONE);%0A%0A        assertEquals(%0A                %22Error, getException() did not return the correct neutron API service error%22,%0A                HttpURLConnection.HTTP_BAD_REQUEST,%0A                AbstractHandler.getException(status));%0A        assertEquals(%0A                %22Error, getException() did not return the correct neutron API service error%22,%0A                HttpURLConnection.HTTP_CONFLICT,%0A                AbstractHandler.getException(status));%0A        assertEquals(%0A                %22Error, getException() did not return the correct neutron API service error%22,%0A                HttpURLConnection.HTTP_NOT_ACCEPTABLE,%0A                AbstractHandler.getException(status));%0A        assertEquals(%0A                %22Error, getException() did not return the correct neutron API service error%22,%0A                HttpURLConnection.HTTP_NOT_FOUND,%0A                AbstractHandler.getException(status));%0A        assertEquals(%0A                %22Error, getException() did not return the correct neutron API service error%22,%0A                HttpURLConnection.HTTP_INTERNAL_ERROR,%0A                AbstractHandler.getException(status));%0A    %7D%0A%7D%0A

Add JUnit testing for AbstractHandler class.