@Test
public void testGetVersionedRulesFromPackage() throws IOException {

	// Arrange
	String mockString = "mockString";
	GuvnorServiceImpl sut = new GuvnorServiceImpl(GUNVOR_REST_URL, USERNAME, PASSWORD);
	GuvnorServiceImpl spy = spy(sut);
	HttpURLConnection mockConnection = mock(HttpURLConnection.class);
	when(spy.openConnection(GUNVOR_REST_URL)).thenReturn(mockConnection);
	InputStream mockInputStream = new ByteArrayInputStream(mockString.getBytes("UTF-8"));
	when(mockConnection.getInputStream()).thenReturn(mockInputStream);
	// Act
	String response = spy.getVersionedRulesFromPackage();
	// Assert
	verify(mockConnection, times(1)).setRequestMethod("GET");
	verify(mockConnection, times(1)).connect();
	verify(mockConnection, times(1)).getInputStream();
	assertNotNull(response);
	assertNotEquals(mockString, response);
}