public void test_builder_varargs() { Swap test = Swap.builder().legs(MOCK_GBP1, MOCK_USD1).build(); assertEquals(test.getLegs(), ImmutableList.of(MOCK_GBP1, MOCK_USD1)); }
// ------------------------------------------------------------------------- public void test_expand() { Swap test = Swap.builder().legs(ImmutableList.of(MOCK_GBP1, MOCK_USD1)).build(); assertEquals(test.expand(), ExpandedSwap.of(MOCK_EXPANDED_GBP1, MOCK_EXPANDED_USD1)); }