@Test
public void postBuildInfo() throws IOException {

    final String moduleName = "module";
    final String moduleVersion = "1.0.0-SNAPSHOT";
    final Map<String, String> buildInfo = new HashMap<String, String>();
    buildInfo.put("test", "test.test");
    stubFor(post(urlMatching("/" + ServerAPI.MODULE_RESOURCE + "/" + moduleName + "/" + moduleVersion + ServerAPI.GET_BUILD_INFO))
            .willReturn(aResponse().withStatus(Status.CREATED.getStatusCode())));
    Exception exception = null;
    try {
        client.postBuildInfo(moduleName, moduleVersion, buildInfo, "user", "pwd");
    } catch (Exception e) {
        exception = e;
    }
    assertNull(exception);
}