NovaContext { public static ContextBuilder buildContext(NovaCredentials credentials) { Properties properties = new Properties(); properties.setProperty(NovaProperties.AUTO_ALLOCATE_FLOATING_IPS, "true"); Iterable<Module> modules = ImmutableSet.<Module>of( new SshjSshClientModule(), new SLF4JLoggingModule(), new EnterpriseConfigurationModule()); ContextBuilder build = ContextBuilder.newBuilder("aws-ec2") .credentials(credentials.getAccountName(), credentials.getAccountPass()) .endpoint(credentials.getEndpoint()) .modules(modules) .overrides(properties); return build; } NovaContext(NovaCredentials credentials, ContextBuilder builder); static ContextBuilder buildContext(NovaCredentials credentials); NovaCredentials getNovaCredentials(); ComputeService getComputeService(); NovaApi getNovaApi(); SecurityGroupApi getSecurityGroupApi(); KeyPairApi getKeyPairApi();  }
@Test public void generateContextBuilder() { ContextBuilder contextBuilder = NovaContext.buildContext(credentials); assertNotNull(contextBuilder); }